diff --git a/app/api/v2/schemas/payload_schemas.py b/app/api/v2/schemas/payload_schemas.py index 99b8213e6..22d8701f4 100644 --- a/app/api/v2/schemas/payload_schemas.py +++ b/app/api/v2/schemas/payload_schemas.py @@ -2,9 +2,9 @@ class PayloadQuerySchema(schema.Schema): - sort = fields.Boolean(required=False, default=False) - exclude_plugins = fields.Boolean(required=False, default=False) - add_path = fields.Boolean(required=False, default=False) + sort = fields.Boolean(required=False, load_default=False) + exclude_plugins = fields.Boolean(required=False, load_default=False) + add_path = fields.Boolean(required=False, load_default=False) class PayloadSchema(schema.Schema): @@ -12,7 +12,7 @@ class PayloadSchema(schema.Schema): class PayloadCreateRequestSchema(schema.Schema): - file = fields.Raw(type="file", required=True) + file = fields.Raw(required=True, metadata={'type': 'file'}) class PayloadDeleteRequestSchema(schema.Schema):