Skip to main content

pre-defined-security-requirement-scope-in-security-scheme

Overview

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

A security requirement must only use pre-defined scopes from the security scheme scope definitions.

PropertyValue
EnabledYes
Maximum SeverityError
MessageSecurity requirement scope in the corresponding security scheme is not defined.
CodeOPENAPI3APIMATIC_L933
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Security Requirements
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting pre-defined security requirement scope scheme

Suggested Fixes

  • Make sure that the security requirement uses only the pre-defined scopes from the scope definitions of the corresponding security scheme.
  • Make sure that the scope name used in the security requirement matches the name specified for the scope in the security scheme definition.

For More Information