-
-
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
Using oneOf to specify enum values for a property in schema doesn't generate the enums #15701
Comments
can you please try the latest master? I think we just merged a PR recently fixing this issue. |
I bumped to v6.6.0 locally and tried again but it still doesn't generate the enums |
hi @wing328 , just checking with you to see if you had any ideas? |
+1 Has this been fixed yet? |
2024: still not fixed, it seems |
@wing328 Can you please take another look at this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I want to be able to specify a description for each enum value for an enum property that is used in a schema for an object, and I had seen here that it was possible to do via
oneOf
for the enum property. However, following that, I wasn't able to get any enums generated.openapi-generator version
6.5.0
OpenAPI declaration file content or url
Command line used for generation
mvn generate-sources
Steps to reproduce
After specifying enum as in the above example, run
mvn generate-sources
in order to generate the OAS Java code. If you view the generated file for the enum object, you will see no enums defined.Related issues/PRs
OAI/OpenAPI-Specification#348 (comment)
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: