unique-security-scheme-name
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
The security definitions keys are patterned fields that must have unique values within the Security Definitions Object. The keys represent the names of the security definitions that are available to be used in the specification.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Duplicate entry found for security scheme name in the Security Definitions Object. |
Code | SWAGGER20STANDARDS_V370 |
Type | Validation |
Rule System | Semantic |
Broad Category | Security Schemes |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 swagger standards semantic validation name security scheme security definition security definition object |
Suggested Fixes
- Remove duplicate security definition name entries from the Security Definitions Object.
- Security definition key value is compared in a case-sensitive manner.