Skip to main content

valid-additional-header-name

Overview

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

For successful Code Generation, the name of the additional header must only use letters, numbers, underscores and dashes. It must not contain any leading/trailing white-space characters.

PropertyValue
EnabledYes
Maximum SeverityError
MessageInvalid additional header name found.
CodeOPENAPI3CODEGENSYNTAX_L741
TypeLinting
Rule SystemSyntax
Broad CategoryOpenAPI Security Schemes
Products ImpactedCode Generation, Developer Experience Portal
Tagscode generation sdks openapi3 openapi syntax linting apimatic security scheme header name

Suggested Fixes

  • Make sure the name of the additional header does not contain any forbidden characters.
  • Use only letters, numbers, underscores and dashes.
  • Remove any trailing/leading white-space characters, if present.

For More Information