OpenAPI Security Schemes API Keys Name Info (Edit)

Having components security schemes which possesses an api-key property that allows to configure how API keys are applied to operations have a name of api_key set.

OpenAPISecurityDefault

Rule Definition

openapi-security-schemes-api-key-name-info.yaml
{"openapi-security-schemes-api-key-name-info":{"description":"Having components security schemes which possesses an api-key property that allows to configure how API keys are applied to operations have a name of api_key set.","message":"Components Have a Security Schemes API Keys Name","severity":"info","given":"$.components.securitySchemes.apiKeys","then":[{"field":"name","function":"pattern","functionOptions":{"notMatch":"\\b(api-key)\\b"}}]}}

Back to All of the Rules