We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The cpp-qt-client generator produces invalid code (code that cannot be compiled) for AnyType objects.
... #include "OAIAnyType.h" ... QList<OAIAnyType> getArrayOfSomething() const; ...
The header OAIAnyType.h does not exist and is not generated and the type OAIAnyType is defined nowhere.
master - 6.0.0
Full scheme
arrayOfSomething: type: array items: {} nullable: true
java -jar openapi-generator-cli.jar generate -i https://gist.githubusercontent.com/madrazzl3/da2502b6816aaa98713cba75e595f373/raw/d53da8c6098167768c3e5b1ad1381467397d6a51/example-scheme.yaml -g cpp-qt-client -o generated-client/
Similar problem with other generators:
AnyType
BaseValidate
Add type mapping AnyType -> QJsonValue. QJsonValue can be used to manually get the correct type later.
QJsonValue
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug Report Checklist
Description
The cpp-qt-client generator produces invalid code (code that cannot be compiled) for AnyType objects.
The header OAIAnyType.h does not exist and is not generated and the type OAIAnyType is defined nowhere.
openapi-generator version
master - 6.0.0
OpenAPI declaration file content or url
Full scheme
Generation Details
Steps to reproduce
Related issues/PRs
Similar problem with other generators:
AnyType
andBaseValidate
#7458AnyType
is not defined #6332AnyType
is not defined #7617Suggest a fix
Add type mapping
AnyType
->QJsonValue
.QJsonValue
can be used to manually get the correct type later.The text was updated successfully, but these errors were encountered: