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