This rule belongs to the
openapi-v3-standards-validation ruleset and states that:
In an OpenAPI v3.1.x document, the
spaceDelimited style can only be used when the type of the encoding property is set as
object i.e. it cannot be used for primitive types.
|Message||Space delimited style cannot be used with the current property type.|
|Products Impacted||API Transformer, Code Generation, Developer Experience Portal|
- Ensure that the
typeof the property set in the property's schema definition is equal to
- If the property type is not expected to be an array/object, change the value of the style property to one that supports primitive types e.g. form.
- If the property type is not expected to be an array/object and you are unsure about which style to use, simply remove the
For More Information