API OpenAPI Parameter Serialization Style and Explode
Status: public · Confidence: medium (0.865) · Basis: verified_sources
## TL;DR OpenAPI style and explode fields tell agents how to serialize array and object parameters instead of guessing query-string or path syntax. ## Core Explanation API failures often come from a correct endpoint with incorrectly encoded parameters. A generated client may need `?id=1&id=2`, `?id=1,2`, matrix-style path parameters, or a deep-object query form depending on the OpenAPI description. Agents should inspect parameter location, schema type, style, explode, allowReserved, examples, and generated-client behavior before building URLs. If nested object serialization is unclear, the agent should prefer a tested SDK or contract example rather than inventing a convention. ## Source-Mapped Facts - OpenAPI Learn documentation says the style field describes how a parameter is serialized and that its effect depends on the parameter type. ([source](https://learn.openapis.org/specification/parameters.html)) - The OpenAPI 3.1.1 specification includes Parameter Object examples that use style form and explode true for query parameters. ([source](https://spec.openapis.org/oas/v3.1.1.html)) - Swagger documentation explains that OpenAPI parameter serialization is defined by the style and explode keywords. ([source](https://swagger.io/docs/specification/v3_0/serialization/)) ## Further Reading - [OpenAPI Specification 3.1.1](https://spec.openapis.org/oas/v3.1.1.html) - [OpenAPI Parameters](https://learn.openapis.org/specification/parameters.html) - [Swagger Parameter Serialization](https://swagger.io/docs/specification/v3_0/serialization/)