You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OpenAPI 3 spec allows for query parameters that are of type object. However when this is converted to a Postman collection, the parameters are converted to key / value string pairs. The below example is from an OpenAPI spec that defines a request with a GET query param of type object (location) that must include oneOf the listed properties (zip or address). When converted to a Postman collection, zip is created as a top-level parameter instead of a nested parameter within the location object.
Hey @gorbster, OpenAPI specification suggests that when the object is used for query parameters, by default the value of it's properties should be at top level.
For detailed explanation, for query, parameters called style and explode which determines how value of query will be handled are defaulted to form and true. And for these values, you can see from table that top level param name is not maintained and individual params will be formed for each key value pairs.
To keep top level param intact, you can mention explode as false in you definition. i.e. below will provide you result with location intact.
The OpenAPI 3 spec allows for query parameters that are of type object. However when this is converted to a Postman collection, the parameters are converted to key / value string pairs. The below example is from an OpenAPI spec that defines a request with a GET query param of type object (
location
) that must include oneOf the listed properties (zip
oraddress
). When converted to a Postman collection,zip
is created as a top-level parameter instead of a nested parameter within thelocation
object.The text was updated successfully, but these errors were encountered: