Skip to main content

valid-header-parameter-style

Overview

This rule belongs to the openapi-v3-standards-validation ruleset and states that:

For header parameters, only the simple style is applicable and rest will be treated as invalid.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe current value of style is not applicable to header parameters.
CodeOPENAPI3STANDARDS_V089
TypeValidation
Rule SystemSemantic
Broad CategoryParameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation style serialization header parameter

Suggested Fixes

  • Parameter style value is compared in a case-sensitive manner.
  • Ensure that you are not using a style value that is not supported for header parameters e.g. matrix, label, form, spaceDelimited, pipeDelimited or deepObject.
  • Ensure that the value for style is not null or empty.

For More Information