-
Notifications
You must be signed in to change notification settings - Fork 6k
[CppRest] Add Object and fix modelbase includes
#6905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CppRest] Add Object and fix modelbase includes
#6905
Conversation
|
Update: I've had a second look and this actually doesn't solve the issue mentioned in #6512.. |
Object and fix modelbase includes
|
This PR is now ready to be reviewed again. It fixes #6512. |
|
hi all |
|
@murzic4 do you mind filing a PR to add those? |
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.3.0.0branch for changes related to OpenAPI spec 3.0. Default:master.Description of the PR
This PR addresses two issues:
TheObject.hheader file does not exist, we replace it withModelBase.hwhich provides the expected functionality (fix [CPPREST] Arbitrary object type results in a compilation error (missing Object.h) #6512). This was seemingly an early copy and paste mistake that wasn't caught by the PetStore example.Edit (14/11/2017): this PR provides a simple implementation of
Object, wrapped aroundweb::json::valuefrom casablanca. This fixes [CPPREST] Arbitrary object type results in a compilation error (missing Object.h) #6512.I've updated the sample code accordingly and managed to compile it without any problems.
This change has also been tested successfully on a codebase where two separate APIs coexist (which wasn't possible at all before).