Skip to content

Dropdown "Response content type" in Try-it-out is not present #10622

@michaldo

Description

@michaldo

The dropdown is present with OpenApi 2 spec
https://petstore.swagger.io/#/user/getUserByName

Image

But is absent with OpenApi 3 spec
https://petstore3.swagger.io/#/user/getUserByName

Image

OpeanApi 2 had "produces":

"/user/{username}": {
      "get": {
        "tags": [
          "user"
        ],
        "produces": [
          "application/json",
          "application/xml"
        ],

Open Api 3 has "response" combination

"/user/{username}": {
      "get": {
        "tags": [
          "user"
        ],
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/User"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions