Closed pbrisbin closed 6 months ago
Oh, I think I found why:
WARN (paths./{lang}/lesson-data.json.GET.responses.200.content): Only content type application/json is supported for response bodies.
This spec is generated from a Servant type using servant-openapi3
. It decides to add the ;charset=
suffix on the content-types. I think this generator should still accept such values, since it is still application/json
.
Hey @pbrisbin , Thank you for the report. As far as I can see you analyzed the problem correctly. I do not see a reason to not support content types with a charset (although we do not do any special handling of the charset), so I applied a fix which should resolve your issue: https://github.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator/pull/97 I'll close the issue for now but feel free to comment or reopen it if it does not work as expected.
Thanks for the quick fix!
I have a large-ish spec that includes,
References,
When I generate from this spec, I get:
Notice
Get_constructed_responses'jsonResponse200
has no value.Shouldn't there be a
NonEmpty ConstructedResponse
there?