-
According to https://swagger.io/docs/specification/v3_0/data-models/enums/ it's possible to add a description to Enum values. However, annotating them in my code with Is this supported in Smallrye? |
Beta Was this translation helpful? Give feedback.
Answered by
MikeEdgar
Jan 29, 2025
Replies: 1 comment 5 replies
-
I think the description is applied at the parameter level in the example. You can put Markdown in the description so it appears more readable. That's what is shown in the linked doc (in-lined below). parameters:
- in: query
name: sort
schema:
type: string
enum: [asc, desc]
description: >
Sort order:
* `asc` - Ascending, from A to Z
* `desc` - Descending, from Z to A |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, that's what I was thinking too. The way schema is structured, you need to place the description for all of the entries (BAR, BAZ, etc) into the description on
Foo
.