Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageResponses codes are out of order.
CodeOPENAPI3APIMATIC_L461
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Responses
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 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.

For More Information