Updated program schema

This commit is contained in:
Pünkösd Marcell 2021-04-14 21:10:31 +02:00
parent 5ffaa6228b
commit ffa20ea1fc

View File

@ -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))