OpenAPI Operation Security Definitions API Keys Error (Edit)

Each API operation should have a security definition referencing the central security scheme express for an OpenAPI referencing apiKeys property.

OpenAPIOperationsSecurityDefault

Rule Definition

openapi-operation-security-definitions-keys-error.yaml
{"openapi-operation-security-definitions-keys-error":{"description":"Each API operation should have a security definition referencing the central security scheme express for an OpenAPI referencing apiKeys property.","message":"Operations MUST Have a Security Definition for API Keys","severity":"error","given":"$.paths.*[get,post,patch,put,delete]","then":{"field":"@key","function":"pattern","functionOptions":{"notMatch":"\\b(apiKeys)\\b  "}}}}

Back to All of the Rules