-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Encoding is not exploding a array property in requestBody in swagger-ui. #5106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Observing same behavior with Swagger UI 3.20.3. Here is our request definition:
Both the request sent by SwaggerUI to the server and the generated curl command have |
OpenAPI 3.0 does not have a way to describe exploded arrays in multipart requests. Please see #4741 for an earlier discussion of this issue.
To request changes to the OpenAPI Specification you'll need to open an issue here. Once the Specification is updated, tool developers can implement the new behavior. |
Formally correct, but neither does OpenAPI spec says that array property values must be comma-separated. And such behavior is inconsistent with the handling of multiple files upload through multipart requests. |
Closing as a duplicate - |
Uh oh!
There was an error while loading. Please reload this page.
Q&A (please complete the following information)
Content & configuration
Swagger/OpenAPI definition:
Swagger-UI configuration options:
Screenshots
How can we help?
Encoding is not exploding a array property in requestBody in swagger-ui.
Im getting this command for curl:
notice this part:
-F "player_uuids=aaa,bbb,ccc"
im trying to get this result
-F "player_uuids[]=aaa" -F "player_uuids[]=bbb" -F "player_uuids[]=ccc"
The text was updated successfully, but these errors were encountered: