Updated program schema
This commit is contained in:
parent
5ffaa6228b
commit
ffa20ea1fc
@ -14,8 +14,11 @@ class CommandSchema(Schema):
|
||||
|
||||
|
||||
class ProgramSchema(Schema):
|
||||
version = fields.Int(required=True, validate=Equal(SUPPORTED_PROGRAM_STRUCTURE_VERSION))
|
||||
_id = fields.Str(required=False)
|
||||
created_at = fields.DateTime(required=False)
|
||||
name = fields.Str()
|
||||
|
||||
version = fields.Int(required=True, validate=Equal(SUPPORTED_PROGRAM_STRUCTURE_VERSION))
|
||||
load_plugins = fields.List(fields.Str(), required=True)
|
||||
program = fields.Nested(CommandSchema, many=True, required=True, validate=Length(min=1))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user