swagger-ui
swagger-ui copied to clipboard
Bug: curl does not display correct Response Content Type
This is the result of swagger forum discussion "How to show Response Content Type?". In summary, with any non-empty schema in a ‘successful’ (2XX) response, e.g,
{"tags": ["mytag"],
"produces": ["application/json","application/xml"],
"responses": {
"200": {"description": "Success", "schema": {"type" : "integer"}},
"405": {"description": "Invalid input"} }};
"Response Content Type" pops up in ui, but changing it to the 2nd value does not update curl command display after "Try it out". This is only about curl display, contents sent to server might be correct.
This issue depends on swagger-api/swagger-js#504
This is resolved in 2.1.1.