-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[BUG][C++][cpp-pistache-server] An api receiving a std::optional parameter generates a org::openapitools::server::model::std::optional<...> that doesn't compile #18792
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
Labels
Comments
The correction provided with the PR accompanying this issue doesn't correct all the #6726 troubles. It reduces its compilation error list from:
to
That puts |
mlebihan
added a commit
to mlebihan/openapi-generator
that referenced
this issue
May 30, 2024
…meter generates a org::openapitools::server::model::std::optional<...> that doesn't compile OpenAPITools#18792 Solving this issue has for goal to reduce the amount of work required to resolve the [[C++] Error making the cpprestsdk generated files](OpenAPITools#6726) and to put the `cpp-pistache-server` generator a the "same compilation problems" level than the `cpp-restsdk` generator in font of the OpenAPITools#6726.
5 tasks
wing328
pushed a commit
that referenced
this issue
Jun 1, 2024
…meter generates a org::openapitools::server::model::std::optional<...> that doesn't compile #18792 (#18793) Solving this issue has for goal to reduce the amount of work required to resolve the [[C++] Error making the cpprestsdk generated files](#6726) and to put the `cpp-pistache-server` generator a the "same compilation problems" level than the `cpp-restsdk` generator in font of the #6726.
welshm
pushed a commit
to welshm/openapi-generator
that referenced
this issue
Jun 5, 2024
…meter generates a org::openapitools::server::model::std::optional<...> that doesn't compile OpenAPITools#18792 (OpenAPITools#18793) Solving this issue has for goal to reduce the amount of work required to resolve the [[C++] Error making the cpprestsdk generated files](OpenAPITools#6726) and to put the `cpp-pistache-server` generator a the "same compilation problems" level than the `cpp-restsdk` generator in font of the OpenAPITools#6726.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report Checklist
Conditions are the same than in the issue
[C++] Error making the cpprestsdk generated files
Description
This issue has for goal to reduce the amount of work required to resolve the #6726
apart that the problem described here affects
cpp-pistache-server
generator and notcpp-resksdk
one.the generator generate this, if an
std::optional
parameter is passed to an api call:const org::openapitools::server::model::std::optional<org::openapitools::server::model::GetAccountVideos_categoryOneOf_parameter> &categoryOneOf
this doesn't compile.
Suggest a fix
This should be replaced by:
const std::optional<org::openapitools::server::model::GetAccountVideos_categoryOneOf_parameter> &categoryOneOf
openapi-generator version
7.6.0
Related issues/PRs
[C++] Error making the cpprestsdk generated files
The text was updated successfully, but these errors were encountered: