forked from loafle/openapi-generator-original
[CppRest] Add Object and fix modelbase includes (#6905)
* Objects are represented by `ModelBase.h`, not `Object.h` which does not exist. * Use correct relative imports for files in the `model` and `api` folders. * [CppRest] Update cpprest petstore client sample. * Implement `Object` class to support arbitrary types. * [CppRest] Update cpprest petstore client sample. * [CppRest] Add newly generated files to petstore client sample. * [CppRest] Add `Object` to CMakeLists.
This commit is contained in:
committed by
William Cheng
parent
d9cea0f97e
commit
acefe3f385
@@ -113,6 +113,8 @@ public class CppRestClientCodegen extends AbstractCppCodegen {
|
||||
|
||||
supportingFiles.add(new SupportingFile("modelbase-header.mustache", "", "ModelBase.h"));
|
||||
supportingFiles.add(new SupportingFile("modelbase-source.mustache", "", "ModelBase.cpp"));
|
||||
supportingFiles.add(new SupportingFile("object-header.mustache", "", "Object.h"));
|
||||
supportingFiles.add(new SupportingFile("object-source.mustache", "", "Object.cpp"));
|
||||
supportingFiles.add(new SupportingFile("apiclient-header.mustache", "", "ApiClient.h"));
|
||||
supportingFiles.add(new SupportingFile("apiclient-source.mustache", "", "ApiClient.cpp"));
|
||||
supportingFiles.add(new SupportingFile("apiconfiguration-header.mustache", "", "ApiConfiguration.h"));
|
||||
|
||||
Reference in New Issue
Block a user