From 44203bd8068898481ed4ca6441f399c519f0350c Mon Sep 17 00:00:00 2001 From: jean-baptiste-perez-bib Date: Mon, 8 Jul 2024 09:27:14 +0200 Subject: [PATCH] Fixes marshmallow warnings (payload_schemas.py) --- app/api/v2/schemas/payload_schemas.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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):