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

Arnaud Roubinet commented on CXF-8115:
--------------------------------------

In this project you can find two operation (Get and Put) who each expose two 
versions.

I also provide what I think should be the generated swagger into 
expectedOpenApi.json.

> OpenApiFeature dosn't allow the versioning by media type
> --------------------------------------------------------
>
>                 Key: CXF-8115
>                 URL: https://issues.apache.org/jira/browse/CXF-8115
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.4.0
>            Reporter: Arnaud Roubinet
>            Priority: Major
>              Labels: openapi
>         Attachments: spring_boot.zip
>
>
> With open api 3.0, one of the new features is we use media type for 
> versioning our api. (Instead of using the path)
>  
> When exposing operations with same HTTP verb and path, but different media 
> type (Consume or produce), we expected the generated swagger to provide both 
> in the description.
> Unfortunately, only one appear in the generated document which is a 
> limitation of open api 2.0.
> At this point I don’t know if I should open a bug or a new feature task.
>  
> I will provide an example base on the demo projet.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to