Markus Plangg created CXF-8423:
----------------------------------
Summary: cxf-rt-rs-service-description-swagger ignores class level
@Consumes and @Produces annotation
Key: CXF-8423
URL: https://issues.apache.org/jira/browse/CXF-8423
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 3.4.2
Environment: org.apache.cxf:cxf-spring-boot-starter-jaxrs:3.4.1
Spring Boot 2.3.5.RELEASE
Reporter: Markus Plangg
Setting a @javax.ws.rs.Consumes or @javax.ws.rs.Produces annotation on an
interface applies the annotations to all methods.
I am using in a Spring Boot project.
When I add the @Consumes and @Produces annotations to the interface, the
generated swagger.json file does not contain a "consumes" and "produces"
section for any method of the class.
When I add the annotations to any methods directly, they contain the correct
sections.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)