It seems that, there is a hole with this deprecation. This feature has been deprecated but no other Annotation has replaced that functionality.
For now it seems that you can only add description programmatically
@Bean
public Docket commonDocketConfig() {
return new Docket(DocumentationType.SWAGGER_2) .select()
.apis(RequestHandlerSelectors.basePackage("com.company"))
.paths(PathSelectors.any())
.build() .apiInfo(apiEndPointsInfo())
.tags(new Tag("Change timezone", "your description"));
}
Issue can be tracked here
@Api description deprecated without any alternative
You can try also with
@Api(tags = {"Change timezone"})
@SwaggerDefinition(tags = {
@Tag(name = "Change timezone", description = "your Description")
})
public class YourController {
}
This annotation however already has an open bug for not behaving correctly @SwaggerDefinition bug