Skip to main content

no-allow-empty-value-for-space-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 spaceDelimited style type. Therefore, for such cases, the value of allowEmptyValue will be ignored.

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

Suggested Fixes

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

For More Information