OpenAPI Security Schemes API Keys In Header Error (Edit)

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

OpenAPISecurityDefault

Rule Definition

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

Back to All of the Rules