Skip to main content

unique-specification-extension-name

Overview

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

Specification extensions are patterned fields that must have unique values within the object they are extending. The keys represent the names assigned to the vendor extensions that must be prefixed by 'x-'.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate specification extension entry found.
CodeSWAGGER20STANDARDS_V430
TypeValidation
Rule SystemSemantic
Broad CategorySpecification Extensions
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation specification extensions vendor extensions extensions

Suggested Fixes

  • Remove duplicate specification extension entries from the object that these extensions are extending.
  • Specification extension keys are compared in a case-sensitive manner.

For More Information