sorted-responses-keys
Overview
This rule belongs to the openapi-v3-apimatic-linting
ruleset and states that:
Response codes must be sorted in an ascending/increasing order.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Responses codes are out of order. |
Code | OPENAPI3APIMATIC_L461 |
Type | Linting |
Rule System | Semantic |
Broad Category | OpenAPI Responses |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | openapi3 openapi apimatic semantic linting responses keys sorted response codes |
Suggested Fixes
- Make sure that all of your response codes are in ascending order.
- If an entry is out of order, place it at the correct position.