If the spec requires that, then I'd expect to get a YAML response if making a request without an `Accept` header on the request.
I haven't looked through the microprofile-openapi TCK, but I'd expect that to be tested, and I'd suggest contributing a test there if there isn't one. If you wanted to explicitly request a YAML response, I'd expect one of these to work: Accept: application/x-yaml Accept: text/yaml I'd expect a Content-Type header on the response to identify the mime type of the response, whatever is being returned. Jon On Thu, Nov 29, 2018 at 4:50 PM Ivan Junckes Filho <[email protected]> wrote: > Hey guys, I think I found a bug in OpenAPI implementation. > > The spec says: > "The default format of the /openapi endpoint is YAML." > > But when I try to access /openapi it returns JSON by default. > > This is not correct. > > Also how can I access yaml if it is not default? >
