Skip to main content

valid-query-parameter-style

Overview

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

For query parameters, only the following styles are applicable: form, spaceDelimited, pipeDelimited or deepObject. Rest will be treated as invalid.

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

For More Information