-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[BUG][Qt] Generating code from API with bool properties called valid leads to non-compilable code #17487
Closed
5 of 6 tasks
Labels
Comments
2 tasks
martonmiklos
added a commit
to martonmiklos/openapi-generator
that referenced
this issue
Jan 25, 2024
- signals (builtin Qt macro) - slots (builtin Qt macro) - NULL - valid (generated classes has an isValid method) - set (generated classes has an isSet method) Fixes OpenAPITools#17487
Merged
5 tasks
martonmiklos
added a commit
to martonmiklos/openapi-generator
that referenced
this issue
Feb 6, 2024
- signals (builtin Qt macro) - slots (builtin Qt macro) - valid (generated classes has an isValid method) - set (generated classes has an isSet method) Fixes OpenAPITools#17487
martonmiklos
added a commit
to martonmiklos/openapi-generator
that referenced
this issue
Feb 10, 2024
- signals (builtin Qt macro) - slots (builtin Qt macro) - valid (generated classes has an isValid method) - set (generated classes has an isSet method) Fixes OpenAPITools#17487
kota65535
pushed a commit
to kota65535/openapi-generator
that referenced
this issue
Feb 23, 2024
OpenAPITools#17722) - signals (builtin Qt macro) - slots (builtin Qt macro) - valid (generated classes has an isValid method) - set (generated classes has an isSet method) Fixes OpenAPITools#17487
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report Checklist
Description
openapi-generator version
OpenAPI declaration file content or url
https://demo.inventree.org/api/schema/
It is a demo site, could be accessed with the credentials listed here:
https://inventree.org/demo.html
The following section for e.g.:
generates to the following C++ code:
The last two overridden functions are generated for each class derived from Objects which conflicts with the generated ones.
The problem transitive to the bool properties called set I think.
Suggest a fix
Suffix the conflicting generated method names with an underscore (isValid_(), isSet_())
The text was updated successfully, but these errors were encountered: