You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use in our project spring boot 3.0.2 and springdoc-openapi (springdoc-openapi-starter-webmvc-ui) 2.0.2.
Since the springdoc-openapi 2.0.1 there is a following issue: @Parameter declaration inside of @Operation leads to a wrong api-doc result.
To Reproduce
Steps to reproduce the behavior:
This declaration
@Operation(summary = "test update book",
parameters = {
@Parameter(name = "id", description = "Id of a book", in = ParameterIn.PATH, example = "1" )
}
)
@PutMapping(value = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
public BookDto updateBook(
@PathVariable long id,
@RequestBody BookEditDto bookEditDto) {
return new BookDto();
}
Describe the bug
We use in our project spring boot 3.0.2 and springdoc-openapi (springdoc-openapi-starter-webmvc-ui) 2.0.2.
Since the springdoc-openapi 2.0.1 there is a following issue:
@Parameter
declaration inside of@Operation
leads to a wrong api-doc result.To Reproduce
Steps to reproduce the behavior:
This declaration
Leads to this api-doc result:
If a
@Parameter
declaration will be moved to the method definition like thisThen the api-doc result is correct:
Expected behavior
The
@Parameter
declaration inside of@Operation
should work in proper way.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: