Skip to content

Support x-enum-descriptions for enums#281

Open
KingSora wants to merge 1 commit intojavalin:mainfrom
KingSora:feat/support-x-enum-descriptions
Open

Support x-enum-descriptions for enums#281
KingSora wants to merge 1 commit intojavalin:mainfrom
KingSora:feat/support-x-enum-descriptions

Conversation

@KingSora
Copy link
Copy Markdown

Implements #280

Added a test to reflect the changes. Improvements I could think of:

  1. Use a different annotation than OpenApiDescription for that
  2. Introduce an additional annotation (something like OpenApiEnumDescription("field-name") which allows to control the name of the x-enum-descriptions field (since its a non-standard field), its currently hardcoded but could be dynamic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant