Skip to main content

no-allow-empty-value-for-pipe-delimited-style-parameter

Overview

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

Empty valued parameters cannot be serialized when using the pipeDelimited style type. Therefore, for such cases, the value of allowEmptyValue will be ignored.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageValue of allowEmptyValue will be ignored for pipeDelimited parameter style.
CodeOPENAPI3STANDARDS_V097
TypeValidation
Rule SystemSemantic
Broad CategoryParameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation style pipe delimited serialization parameter allow empty value

Suggested Fixes

  • Remove the allowEmptyValue flag from the parameter definition if you are using the pipeDelimited style.
  • Change the value of the parameter style from simple to one that supports empty values e.g. matrix, label, form.

For More Information