Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple response types #436

Open
mryellow opened this issue Apr 12, 2021 · 0 comments
Open

Support multiple response types #436

mryellow opened this issue Apr 12, 2021 · 0 comments

Comments

@mryellow
Copy link

mryellow commented Apr 12, 2021

Is your feature request related to a problem? Please describe.

Unable to properly define response schema's especially in the context of multiple response content-types.

Describe the solution you'd like

The response table should display a response for each content-type.

Valid OpenAPI3 specification:

        "responses": {
          "200": {
            "description": "Foo",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },

Actual output:

|Status|Meaning|Description|Schema|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Foo|string|

Expected output:

|Type|Status|Meaning|Description|Schema|
|---|---|---|---|
|application/json|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Foo|object|
|application/pdf|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Foo|string(binary)|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant