Skip to main content

unique-response-header

Overview

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

Response header keys are patterned fields that must have unique values within the Headers Object. The keys represent the names of the headers for each response.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate response header entry found.
CodeSWAGGER20STANDARDS_V220
TypeValidation
Rule SystemSemantic
Broad CategoryResponse Headers
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation response header headers

Suggested Fixes

  • Remove duplicate response header entries from the Headers Object.
  • Header key value is compared in a case-sensitive manner.

For More Information