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?
to your account
Enum looks nice in SwaggerUI, enum arrays do not.
Here the changes that work for me for nice SwaggerUI output, but it might not be correct for the OpenAPI standard: code diff
The text was updated successfully, but these errors were encountered:
Ok the previous commit / provided solution is not the correct way to do it, this will also result in an
were we would want more something like
Sorry, something went wrong.
The correct Swagger to output (according to the docs) is:
"enum": ["first-value", "second-value"]
Successfully merging a pull request may close this issue.