Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate entry found for security scheme name in the Security Requirement Object.
CodeSWAGGER20STANDARDS_V410
TypeValidation
Rule SystemSemantic
Broad CategorySecurity Requirements
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 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.

For More Information