Skip to main content

unique-specification-extension-name

Overview

This rule belongs to the openapi-v3-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.
CodeOPENAPI3STANDARDS_V460
TypeValidation
Rule SystemSemantic
Broad CategorySpecification Extensions
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi 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