You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like when using openapi2conv.ToV3, the result content-type is always JSON. Please see the example (also pasted below). The output is application/json while the produces field is application/toml.
It seems like when using
openapi2conv.ToV3
, the result content-type is always JSON. Please see the example (also pasted below). The output isapplication/json
while theproduces
field isapplication/toml
.I guess that this is because that hard-coded "WithJsonSchemaRef" here: https://github.com/getkin/kin-openapi/blob/master/openapi2conv/openapi2_conv.go#L426 or somewhere in this area.
Hope I'm correctly defining a content-type for response in openapi v2, and using openapi2conv correctly as well.
Thanks.
Got:
Expected:
The text was updated successfully, but these errors were encountered: