-
Notifications
You must be signed in to change notification settings - Fork 96
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
Generated interface, contains string instead of enum in case of POST request #1896
Comments
altro3
added a commit
to altro3/micronaut-openapi
that referenced
this issue
Dec 6, 2024
altro3
added a commit
to altro3/micronaut-openapi
that referenced
this issue
Dec 15, 2024
altro3
added a commit
to altro3/micronaut-openapi
that referenced
this issue
Dec 15, 2024
altro3
added a commit
to altro3/micronaut-openapi
that referenced
this issue
Dec 15, 2024
altro3
added a commit
to altro3/micronaut-openapi
that referenced
this issue
Dec 15, 2024
altro3
added a commit
to altro3/micronaut-openapi
that referenced
this issue
Dec 18, 2024
altro3
added a commit
to altro3/micronaut-openapi
that referenced
this issue
Dec 18, 2024
altro3
added a commit
to altro3/micronaut-openapi
that referenced
this issue
Dec 18, 2024
altro3
added a commit
to altro3/micronaut-openapi
that referenced
this issue
Dec 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
As a user, I want to generate a POST method declaration for the controller based on the OpenAPI yml file, where the request body is of enum type.
Actual Behaviour
The generated interface contains a variable of type String instead of the expected enum.
Steps To Reproduce
For the GET method, everything is fine, but for the POST method, the variable is a string. Is it possible to achieve an enum type as a result of the generation? If this is not a bug, please let me know what I am doing wrong.
Environment Information
Example Application
https://github.com/matadini/openapi-micronaut-string-instead-enum
Version
4.7.0
The text was updated successfully, but these errors were encountered: