With this controller definition, with a tag:
@RestController
@RequestMapping("/some_path")
@Tag(name = "MyController")
public class MyController {
...
}
When trying to customize OpenApi, I can't get the value of tags:
@Bean
public OpenApiCustomiser order() {
return openApi -> openApi.setTags(openApi.getTags() ...
openApi.getTags()
always returns null
, I was expecting a list with MyController
tag.
Any suggestion?
You can use the OperationCustomizer, which is more relevant for your case: