Skip to main content

non-empty-security-scheme-component-key

Overview

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

When a security scheme is defined in the components object, the key specified for it must be non-empty.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe security scheme key defined in components object is empty.
CodeOPENAPI3APIMATIC_L153
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Components
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting component security scheme empty

Suggested Fixes

  • Make sure that the security scheme key defined in the components object is non-empty.
  • Remove all the security schemes from components object where the security scheme key is empty or assign a valid alphanumeric value to it.

For More Information