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
We support creating file fields via the apiflask.schemas.File field class, and use the metadata to set the type and the format:
classImageIn(Schema):
image=File()
But we still need to support creating the schema for file response. In that case, the whole response is a file, there isn't a key for the file. For example:
We support creating file fields via the
apiflask.schemas.File
field class, and use the metadata to set the type and the format:But we still need to support creating the schema for file response. In that case, the whole response is a file, there isn't a key for the file. For example:
I will create a
FileSchema
class that acceptstype
andformat
as arguments, then create the file schema from it. Example usage:The text was updated successfully, but these errors were encountered: