Skip to main content

unique-responses-key

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

Each response must have a unique http status code to clearly identify its purpose and differentiate it from other responses.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate response key found.
CodeOPENAPI3APIMATIC_L460
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Responses
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting response key unique default status code

Suggested Fixes

  • Keep one and remove all other response key definitions which have the same status codes.
  • Update response status code to avoid conflict.

For More Information