Skip to main content

valid-cookie-parameter-style

Overview

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

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

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe current value of style is not applicable to cookie parameters.
CodeOPENAPI3STANDARDS_V090
TypeValidation
Rule SystemSemantic
Broad CategoryParameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation style serialization cookie 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 cookie parameters e.g. matrix, label, simple, spaceDelimited, pipeDelimited or deepObject.
  • Ensure that the value for style is not null or empty.

For More Information