OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.76k stars 6.32k forks source link

[cpp-restsdk] add support for oneOf via std::variant #18821

Closed wing328 closed 1 month ago

wing328 commented 1 month ago

Reverts OpenAPITools/openapi-generator#18820

based on https://github.com/OpenAPITools/openapi-generator/pull/18474

aminya commented 1 month ago

What's the failure that's blocking this PR?

wing328 commented 1 month ago

the test failure details can be found inhttps://app.circleci.com/pipelines/github/OpenAPITools/openapi-generator/29877/workflows/eb40bf75-0cfe-4e7d-a276-a6a7b0eb1945/jobs/96564 looks like it's still using C++ 9 somehow.

e.g.

/usr/include/c++/9/variant:1714:8: error: ‘::__enable_hash_call’ has not been declared
aminya commented 1 month ago

Awesome. The tests now pass!