Skip to content

Commit

Permalink
Fixes marshmallow warnings (payload_schemas.py)
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-baptiste-perez-bib committed Jul 11, 2024
1 parent 8055c56 commit c8d948b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/api/v2/schemas/payload_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@


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):
payloads = fields.List(fields.String())


class PayloadCreateRequestSchema(schema.Schema):
file = fields.Raw(type="file", required=True)
file = fields.Raw(required=True, metadata={'type': 'file'})


class PayloadDeleteRequestSchema(schema.Schema):
Expand Down

0 comments on commit c8d948b

Please sign in to comment.