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
When hey-api converts a body payload into a form for multipart/form-data, nested arrays with one element lose their distinction as nested upon serialization. Instead, they look like the unnested data type. It is due to this code (and its equivalent for other backends):
Description
When hey-api converts a body payload into a form for
multipart/form-data
, nested arrays with one element lose their distinction as nested upon serialization. Instead, they look like the unnested data type. It is due to this code (and its equivalent for other backends):openapi-ts/packages/client-axios/src/utils.ts
Line 498 in 7098555
When only one value exists, the form has no indication to wrap the inner element as a list and instead treats it as a single list
Reproducible example or configuration
repro-heyapi.zip
./run_frontend_backend.sh
and open localhost:5173 in browserTo regenerate the hey-api client api, ensure the fastapi server is running (it provides the openapi file), and run
npx openapi-ts
OpenAPI specification (optional)
3.1.1
System information (optional)
macos
The text was updated successfully, but these errors were encountered: