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
If I define the following argument and add it to my spec, the Swagger spec and UI correctly renders it (i.e. I can upload a file from the UI, and the spec contains the correct properties).
fields.Field(
description="Data file to perform inference.",
required=True,
location="form",
type="file"
)
However, files must be sent as multipart/form-data, therefore adding the location="form" is mandatory in such cases.
As a wishlist, this could be avoided if we automatically set location="form" if a defined argument is of type file.
The text was updated successfully, but these errors were encountered:
If I define the following argument and add it to my spec, the Swagger spec and UI correctly renders it (i.e. I can upload a file from the UI, and the spec contains the correct properties).
However, files must be sent as
multipart/form-data
, therefore adding thelocation="form"
is mandatory in such cases.As a wishlist, this could be avoided if we automatically set
location="form"
if a defined argument is of typefile
.The text was updated successfully, but these errors were encountered: