OpenAPI Operation Security Definitions API Keys Info (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-info.yaml
{"openapi-operation-security-definitions-keys-info":{"description":"Each API operation should have a security definition referencing the central security scheme express for an OpenAPI referencing apiKeys property.","message":"Operations Have a Security Definition for API Keys","severity":"info","given":"$.paths.*[get,post,patch,put,delete].security[*]","then":{"field":"@key","function":"pattern","functionOptions":{"match":"\\b(apiKeys)\\b "}}}}

Back to All of the Rules