Skip to content

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

@linead

Description

@linead

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions