Skip to content
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

When giving a property as variable in description of @RequestBody annotation it is not showing the actual value of the property. #9296

Open
scintilla932 opened this issue Oct 10, 2023 · 0 comments

Comments

@scintilla932
Copy link

Q&A (please complete the following information)

  • OS: Windows
  • Browser: Chrome
  • Version: 117.0.5938.149
  • Method of installation: Using swagger via spring-doc
  • Swagger-UI version: 4.18.2
  • Swagger/OpenAPI version: OpenAPI 3.0

Content & configuration

I have a spring boot project. When I try to add @io.swagger.v3.oas.annotations.parameters.RequestBody annotation to a request body in a controller like this:
@io.swagger.v3.oas.annotations.parameters.RequestBody(description = "${somepropertyname.somesubpropertyname.value}"
instead of displaying the value of the property it just displays the property as it is on the ui.
Where as for other annotation like @paramter, @Schema, @operation etc it is giving the desired result.

Any help here is appreciated.
PS: I am using Spring Boot 3.1.1 and Java 17

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

No branches or pull requests

1 participant