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

[BUG] Schema not parsed correctly in some cases when response is Array #397

Closed
fryette opened this issue May 2, 2022 · 0 comments · Fixed by #399
Closed

[BUG] Schema not parsed correctly in some cases when response is Array #397

fryette opened this issue May 2, 2022 · 0 comments · Fixed by #399
Assignees
Labels
bug Something isn't working Triage needed

Comments

@fryette
Copy link
Contributor

fryette commented May 2, 2022

Describe the bug
When schema has next part for request

"responses": {
          "200": {
            "description": "An array of all currencies",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Currency"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          }
        }
      }

where the currency is:

 "Currency": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "example": [
          "USD",
          "EUR"
        ]
      }

build failed.
Seems we need to handle that case when schema is defined together with items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Triage needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants