[Feature] Mark type as deprecated if the class is @Deprecated (original) (raw)

If a controller method is annotated with @Deprecated, the respective operation gets a deprecated: true flag. However, if for example a DTO class is annotated with @Deprecated, that has no effect on the OpenAPI docs.