using @Examples()
on a model
#2631
Closed
VictoriqueMoe
started this conversation in
General
Replies: 1 comment 7 replies
-
FYI, this PR on my application is for this change for additinal context waifuvault/WaifuVault#131 |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello.
I have the following decorator in my argument:
this is a Parameter.
I like this because in swagger, you can get a dropdown of all the eamples
I am now moving all the
@QueryParams
to an model object to not pollute the class. my object looks as follows:I want the examples to stay for
expires
. however the@Examples()
decorator is only aParameterDecorator
and the non-plural version@Example()
does not do the same thing, all that seems to do is fill in the input with a default value. not a dropdown like@Examples()
Is there a way so that the model can have
Examples()
and it renders in the swagger of a deropdown of examples?Beta Was this translation helpful? Give feedback.
All reactions