Skip to content

GH-280 Support x-enum-descriptions for enums#281

Merged
dzikoysk merged 2 commits into
javalin:mainfrom
KingSora:feat/support-x-enum-descriptions
May 15, 2026
Merged

GH-280 Support x-enum-descriptions for enums#281
dzikoysk merged 2 commits into
javalin:mainfrom
KingSora:feat/support-x-enum-descriptions

Conversation

@KingSora

Copy link
Copy Markdown
Contributor

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.

@dzikoysk dzikoysk changed the title Support x-enum-descriptions for enums GH-280 Support x-enum-descriptions for enums May 14, 2026
@dzikoysk dzikoysk merged commit 87f7bdf into javalin:main May 15, 2026
2 checks passed
@dzikoysk

Copy link
Copy Markdown
Member

Thanks!

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.

2 participants