Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate entry found for OAuth 2.0 security scheme scope name in the Scopes Object.
CodeSWAGGER20STANDARDS_V400
TypeValidation
Rule SystemSemantic
Broad CategoryScopes
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 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.

For More Information