-
Notifications
You must be signed in to change notification settings - Fork 414
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
Allow enum parameter description. (#201) #429
base: master
Are you sure you want to change the base?
Allow enum parameter description. (#201) #429
Conversation
I would like to see the Gem support |
Can we merge this ? 🙏🏻 |
Would be nice if the option to append the enums to the description were behind a configuration flag, so they can be turned on or off, depending on preference |
Hi @masamichhhhi Edit: It looks like the official OAS doesn't support per-enum-value descriptions https://swagger.io/docs/specification/data-models/enums/ |
@jtannas
The document you are referring to appears to contain a statement about per-enum-description. Is there any problem with adding that? |
@romanblanco What's the status on this PR? It appears good to go with the exception of some documentation. |
@mattpolito, I believe the changes are ready to be merged once the PR is updated and rebased. @masamichhhhi would you add the statement about per-enum-description to |
@romanblanco |
@masamichhhhi Some of the test-app specs are still failing. |
@romanblanco
(The local path is masked.) |
Currently, enum query parameter can't have description about each value as mentioned in #201 .
To handle this, I added method that generating json like OAI/OpenAPI-Specification#348 (comment).
the following code
generates following json and documents.