From ffa20ea1fcf46295627d44f616feacce86be5073 Mon Sep 17 00:00:00 2001 From: marcsello Date: Wed, 14 Apr 2021 21:10:31 +0200 Subject: [PATCH] Updated program schema --- single_ursim_control/program_schema.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/single_ursim_control/program_schema.py b/single_ursim_control/program_schema.py index adc856a..746f29f 100644 --- a/single_ursim_control/program_schema.py +++ b/single_ursim_control/program_schema.py @@ -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))