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

Fix HTTP Status Code load from OpenAPI 2.0 YAML #125

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

hotuta
Copy link
Contributor

@hotuta hotuta commented Feb 22, 2018

I can't use HTTP Status Code integer load from OpenAPI 2.0 YAML.
But, I can use HTTP Status Code string load from OpenAPI 2.0 YAML.

Example

🆗

responses:
        '200':
          description: pet response
          schema:
            type: array
            items:
              $ref: "#/definitions/Pet"

🆖

responses:
        200:
          description: pet response
          schema:
            type: array
            items:
              $ref: "#/definitions/Pet"

OpenAPI 2.0 Document

https://swagger.io/docs/specification/2-0/describing-responses/

@brandur
Copy link
Member

brandur commented Feb 27, 2018

Oof yep, this seems like a good idea. Thanks!

@brandur brandur merged commit 5d7d3d4 into interagent:master Feb 27, 2018
@brandur
Copy link
Member

brandur commented Feb 27, 2018

Released as 2.0.1.

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

Successfully merging this pull request may close these issues.

2 participants