Closed bkratz closed 4 years ago
Nice!
Would be cool, if you could accept this PR #31 and release a new version of this module. Thx.
https://github.com/Jyskebank/enunciate-openapi/releases/tag/1.1.5 And https://repo1.maven.org/maven2/dk/jyskebank/tooling/enunciate/enunciate-openapi/1.1.5/
Maven Central index is not updated yet, but you should be able to pull the artifacts.
Given following Resource code with
@Produces
having multiple media type entries:the generated openapi.yaml is expected to be:
but is currently:
The same issue applies to
@Consumes
containing multiple media type entries.I have already analysed the problem. It seems that the generator selects the "best" high quality media type and ignores the others. This does not conform with the idea of openAPI because openAPI does not have the concept of weighing media types.
I will prepare a PR for this issue.