Skip to main content

unique-response-definition-name

Overview

This rule belongs to the swagger-v2-standards-validation ruleset and states that:

The response definitions keys are patterned fields that must have unique values within the Response Definitions Object. The keys represent the names of the response definitions that can be reused across operations.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate entry found for response definition name in the Response Definitions Object.
CodeSWAGGER20STANDARDS_V352
TypeValidation
Rule SystemSemantic
Broad CategoryReusable Definitions
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation name response definitions response definitions object

Suggested Fixes

  • Remove duplicate response definition name entries from the Response Definitions Object.
  • Response definition key value is compared in a case-sensitive manner.

For More Information