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
{{ message }}
Repository navigation
Encoding of request bodies as x-www-form-urlencoded, and handling of arrays/explode #2788
How is the foo array supposed to be encoded in the request body? As an exploded array?, such as:
foo={"a":1,"b":2}&foo={"a":3,"b":4}
or not exploded? such as:
foo={"a":1,"b":2},{"a":3,"b":4}
I'm aware that the explode behavior can be explicitly indicated by adding an encoding section with style: form and explode: true/false, but I cannot find in the OpenAPI spec a clear indication of what is the expected behavior when the encoding section is NOT provided.
Out of curiosity, I have tried with Swagger UI and it follows the non-exploded approach (2nd example), but please note that this is not a question about Swagger UI or any other tool. I'm interested in the correct interpretation of the OpenAPI spec.
Activity