Response is fine (thanks jaxrs), request is up to jaxrs runtime so depends where you deploy it (i dont think implementing a custom writer for that is right for users, it has too much pitfalls once integrated to anything else than this very specific spec).
Le jeu. 29 nov. 2018 21:39, Jonathan Gallimore <jonathan.gallim...@gmail.com> a écrit : > 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 <ivanjunc...@gmail.com> > 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? >> >