Skip to main content

required-security-scheme-type

Overview

This rule belongs to the swagger-v2-standards-validation ruleset and states that:

The Security Scheme Object must specify the type of the security scheme using the type property.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired property type in Security Scheme Object is missing.
CodeSWAGGER20STANDARDS_V371
TypeValidation
Rule SystemSemantic
Broad CategorySecurity Schemes
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation type security scheme security

Suggested Fixes

  • Add missing type property in the Security Scheme Object.
  • Make sure that the type property is not null or empty.

For More Information