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 response key for HTTP ranges #1010

Merged
merged 1 commit into from Dec 13, 2022
Merged

Conversation

stefanmaric
Copy link
Contributor

@stefanmaric stefanmaric commented Dec 1, 2022

Changes

OpenAPI allows to use HTTP ranges for response keys, see:
https://swagger.io/docs/specification/describing-responses/#status-codes

Before these changes, openapi-typescript would output invalid
TypeScript when processing schemas with HTTP ranges.

How to Review

Are the test I added enough?

Checklist

  • Unit tests updated
  • README updated
  • examples/ directory updated (if applicable)

OpenAPI allows to use HTTP ranges for response keys, see:
https://swagger.io/docs/specification/describing-responses/#status-codes

Before these changes, openapi-typescript would output invalid
TypeScript when processing schemas with HTTP ranges.
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.

None yet

2 participants