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