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-'.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Duplicate specification extension entry found. |
Code | SWAGGER20STANDARDS_V430 |
Type | Validation |
Rule System | Semantic |
Broad Category | Specification Extensions |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 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.