Skip to main content

no-empty-security

Flags operation-level security: [].

AttributeValue
CategorySecurity
MaturityGold
StarterOff
Lenient–CompleteError

See it fail

get:
security: []
responses:
'200': { description: OK }

Fix it

Remove the field to inherit root security, or declare a non-empty operation security requirement.

Does not flag

Operations whose normalized path ends in /health or /health/info.

Nearby: security-defined, protect-safe-operations.