[ 
https://issues.apache.org/jira/browse/CXF-8423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286677#comment-17286677
 ] 

Markus Plangg commented on CXF-8423:
------------------------------------

Thank you for the fast response.

 

I've created an issue at 
https://github.com/swagger-api/swagger-core/issues/3892.

> 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
>            Priority: Minor
>
> 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)

Reply via email to