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

Status can be string like "4XX". #62

Open
jasverix opened this issue Sep 1, 2023 · 1 comment
Open

Status can be string like "4XX". #62

jasverix opened this issue Sep 1, 2023 · 1 comment

Comments

@jasverix
Copy link

jasverix commented Sep 1, 2023

See https://spec.openapis.org/oas/v3.0.2#patterned-fields-0

To define a range of response codes, this field MAY contain the uppercase wildcard character X. For example, 2XX represents all response codes between [200-299]. Only the following range definitions are allowed: 1XX, 2XX, 3XX, 4XX, and 5XX.

Right now, the statusCode field is a int|null type, so I cannot define a wildcard.

@jasverix
Copy link
Author

jasverix commented Sep 1, 2023

Fixed in https://github.com/Uffe-Code/oooas/issues

If this package awakens again, I might want to make a PR, but for now, we will just continue working in our own fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant