We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 an operation has tags applied at both the class and method level, only the class level tags are applied.
To Reproduce Steps to reproduce the behavior:
What version of spring-boot you are using?
What modules and versions of springdoc-openapi are you using?
Provide with a sample code (HelloController) or Test that reproduces the problem
@RestController @RequestMapping("/api/v1/hello") @Tag(name = "SomeTag") public class HelloController { @GetMapping(produces = "application/json") @Operation( description = "Get a hello message", tags = {"SomeOtherTag"}, responses = { @ApiResponse(responseCode = "200", description = "A hello message"), } ) public ResponseEntity<String> getHelloMessage() { return ResponseEntity.ok("Hello World"); } }
Expected behavior The following json is produced
{ "tags" : ["SomeTag", "SomeOtherTag"], "paths" : { "/api/v1/hello": { "get": { "tags" : ["SomeTag", "SomeOtherTag"] } } } }
What is actually produced:
{ "tags" : ["SomeTag"], "paths" : { "/api/v1/hello": { "get": { "tags" : ["SomeTag"] } } } }
Additional context When the class level @Tag is removed the tag on the @Operation appears. The desired behaviour was observed in version 1.2.22
@Tag
@Operation
The text was updated successfully, but these errors were encountered:
d46b735
No branches or pull requests
When an operation has tags applied at both the class and method level, only the class level tags are applied.
To Reproduce
Steps to reproduce the behavior:
What version of spring-boot you are using?
What modules and versions of springdoc-openapi are you using?
Provide with a sample code (HelloController) or Test that reproduces the problem
Expected behavior
The following json is produced
What is actually produced:
Additional context
When the class level
@Tag
is removed the tag on the@Operation
appears.The desired behaviour was observed in version 1.2.22
The text was updated successfully, but these errors were encountered: