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

Proposal: Allow for ranges of response codes to be defined #516

Closed
linead opened this issue Nov 25, 2015 · 2 comments
Closed

Proposal: Allow for ranges of response codes to be defined #516

linead opened this issue Nov 25, 2015 · 2 comments

Comments

@linead
Copy link

linead commented Nov 25, 2015

In the schema under responses the properties are defined like this:

"^([0-9]{3})$|^(default)$": {
"$ref": "#/definitions/responseValue"
},

It would be nice if we could define ranges here for example

400-499: //client error
500-599: //server error

We've also tried the less graceful 5xx an 4xx, but this throws an error in the swagger editor and we lose the nice formatting (e.g red for 500, yellow for 400).

@linead linead changed the title Allow for ranges of response codes to be defined Proposal: Allow for ranges of response codes to be defined Nov 25, 2015
@fehguy
Copy link
Contributor

fehguy commented Mar 1, 2016

Parent issue #560

@DavidBiesack
Copy link

For closure (!) #638 will allow using '4xx' so ranges such as 400-499 are not necessary.

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

4 participants