Skip to main content

non-empty-scheme-of-http-security-scheme

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

The scheme property specifies the HTTP authentication scheme to be used, such as basic, bearer, etc. The scheme property of an HTTP security scheme must not be empty or null.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe scheme property of an HTTP security scheme is empty or null.
CodeOPENAPI3APIMATIC_L871
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Security Schemes
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting empty http security scheme

Suggested Fixes

  • Provide a non-null, non-empty and valid scheme value for the HTTP security scheme.

For More Information