Skip to main content

required-security-scheme-type

Overview

This rule belongs to the openapi-v3-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.
CodeOPENAPI3STANDARDS_V410
TypeValidation
Rule SystemSemantic
Broad CategorySecurity Schemes
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi 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