Skip to main content

non-conflicting-api-key-header-and-additional-header

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

An additional header cannot have the same name as the API key, this leads to unwanted behavior and conflicts.

PropertyValue
EnabledYes
Maximum SeverityError
MessageConflicting API key and additional header detected.
CodeOPENAPI3APIMATIC_L873
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Security Schemes
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting additional header api key

Suggested Fixes

  • Name of the additional header must not match the name of the API key definition.
  • Change the name of either additional header or API key in case of a conflict.

For More Information