-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
Support dynamic evaluation of description field in the RequestBody annotation #2488
Comments
+1 |
It would resolve also swagger-api/swagger-ui#9296 |
Thanks @esirkova |
BokoEnos
pushed a commit
to BokoEnos/springdoc-openapi
that referenced
this issue
Jan 25, 2024
BokoEnos
pushed a commit
to BokoEnos/springdoc-openapi
that referenced
this issue
Jan 25, 2024
I pushed a PR from my personal account today, so please have a look |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
While using the
@RequestBody
annotation it doesn't replace variable content${myapicall.request_body.description}
for the description. Example the following will result in outputting the variable as is inside the swagger docDescribe the solution you'd like
While using annotations in for example
@Operation
and@Parameter
it supports dynamic evaluation of properties. For example the following will generate the swagger doc in which the summary/descriptions are replaced with the corresponding values from the property fileIt would be great if the same would be supported for
@RequestBody
. Looking deeper in the source it would effectively mean to support the usage of PropertyResolverUtils inside the RequestBodyService similar to GenericParameterServiceDescribe alternatives you've considered
Additional context
None
The text was updated successfully, but these errors were encountered: