-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into magma-config-readme-changes
- Loading branch information
Showing
4 changed files
with
134 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from marshmallow import fields, schema | ||
|
||
|
||
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) | ||
|
||
|
||
class PayloadSchema(schema.Schema): | ||
payloads = fields.List(fields.String()) | ||
|
||
|
||
class PayloadCreateRequestSchema(schema.Schema): | ||
file = fields.Raw(type="file", required=True) | ||
|
||
|
||
class PayloadDeleteRequestSchema(schema.Schema): | ||
name = fields.String(required=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters