valid-api-key-security-scheme-parameter-location
Overview
This rule belongs to the openapi-v3-standards-validation ruleset and states that: 
The location of the API key specified using property in of the Security Scheme Object must have only one of the following values: query, header, cookie. Other types are not supported nor allowed.
| Property | Value | 
|---|---|
| Enabled | Yes | 
| Maximum Severity | Error | 
| Message | Invalid location for API key found. | 
| Code | OPENAPI3STANDARDS_V414 | 
| Type | Validation | 
| Rule System | Semantic | 
| Broad Category | Security Schemes | 
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal | 
| Tags | openapi3openapistandardssemanticvalidationlocationapi keytypesecurity schemesecurity | 
Suggested Fixes
- Value of API key location is compared in a case-sensitive manner.
- Ensure that the API key location value matches exactly with the possible list of values and that there are no typos: query,header,cookie.
- Ensure that the value for API key location is not null or empty.
For More Information
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#security-scheme-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-scheme-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-specification
- https://docs.apimatic.io/rulesets/overview/