Skip to main content

unique-security-requirement-scheme-name

Overview

This rule belongs to the openapi-v3-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 that need to be applied on an operation.

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