[ 
https://issues.apache.org/jira/browse/GERONIMO-6670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Romain Manni-Bucau resolved GERONIMO-6670.
------------------------------------------
       Resolution: Fixed
    Fix Version/s: OpenAPI_1.0.3

The fix ensures there is a body writer for OpenAPI before returning, it 
guarantees it will be serializable from the mediatype sent or will default to 
the default mediatype (yaml if present, json otherwise).

This guarantees we respect the spec (JAX-RS and therefore Microprofile-OpenAPI) 
as much as possible and not violate it not respecting the requested media type 
intentionally.

> When /openapi is requested with a mediatype the server does not support the 
> response serialization fails
> --------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6670
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6670
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Ivan Junckes Filho
>            Assignee: Romain Manni-Bucau
>            Priority: Minor
>             Fix For: OpenAPI_1.0.3
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Content-type text/html is returning this error when used:
> {code}
> No message body writer has been found for class 
> org.apache.geronimo.microprofile.openapi.impl.model.OpenAPIImpl, ContentType: 
> text/html
> {code}
> This content type is used by browsers, so if the user wants to do a GET 
> /openapi in the browser it will display this error.
> The ideal scenario is that user must be able to see the default openapi 
> document using the browser.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to