Skip to main content

security-defined

Requires root-level or operation-level security and verifies that every referenced security scheme exists.

AttributeValue
CategorySecurity
MaturityBaseline
Starter–CompleteError

See it fail

paths:
/health:
get:
responses: { '200': { description: OK } }

Fix it

Declare a security scheme and reference it at root or operation level.

Exceptions

Exclude intentional public operations with exact path, substring pathContains, or regex pathPattern; optionally constrain methods.

security-defined:
severity: error
options:
exceptions:
- path: /health
methods: [get]

Nearby: security-scheme-missing, no-empty-security.