-
-
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] php-symfony enum generation generates empty class #14115
Comments
Please fix. Enums are useless right now |
@paulmyer can you please detail your statement (rational, recommended usage, etc...) ? By the way, I close this issue as the PR has been merge few times ago. |
Schema snippet:
Generated classes:
|
@paulmyer thanks for your feedback. Regarding the real fix, I think the generator should use This could be some new enhancement request. :) |
Bug Report Checklist
Description
when declaring an
enum
in OAS specification file, php-symfony generator generates an empty DTO class instead of a usable implementation.I proposed a fix in the following PR: #14105
openapi-generator version
Version 6.2.1
OpenAPI declaration file content or url
Generate "php-symfony" code with gradle plugin v6.2.1
Here is the generated code for StatusDto:
Steps to reproduce
Generate the code
Related issues/PRs
Suggest a fix
#14105
The text was updated successfully, but these errors were encountered: