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 generated code will call httpx.post(files=dict(file=file, options=options)) which causes a server-side pydantic validation error (options should be of type str).
Describe the solution you'd like
The correct invocation would be httpx.post(data=dict(options=options), files=dict(file=file)) (see relevant page from httpx docs)
Describe alternatives you've considered
Some sort of server-side workaround, but it might be somewhat ugly.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Given this schema for a POST request:
the generated code will call
httpx.post(files=dict(file=file, options=options))
which causes a server-side pydantic validation error (options
should be of typestr
).Describe the solution you'd like
The correct invocation would be
httpx.post(data=dict(options=options), files=dict(file=file))
(see relevant page from httpx docs)Describe alternatives you've considered
Some sort of server-side workaround, but it might be somewhat ugly.
The text was updated successfully, but these errors were encountered: