swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Bug: curl does not display correct Response Content Type

Open rick22sun opened this issue 11 years ago • 2 comments

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.

rick22sun avatar Jun 21 '15 12:06 rick22sun

This issue depends on swagger-api/swagger-js#504

iushankin avatar Jun 24 '15 13:06 iushankin

This is resolved in 2.1.1.

webron avatar Jul 31 '15 20:07 webron