From 2728b3ed1466070b82fffe48769ab15e1c1d06be Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sat, 14 Dec 2019 23:54:03 +0200 Subject: [PATCH] Add labels to standalone models --- server/apimodels/models.py | 2 +- server/schema/services/models.conf | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/apimodels/models.py b/server/apimodels/models.py index 0f07e80..975f569 100644 --- a/server/apimodels/models.py +++ b/server/apimodels/models.py @@ -9,7 +9,7 @@ from apimodels.tasks import PublishResponse as TaskPublishResponse class CreateModelRequest(models.Base): name = fields.StringField(required=True) uri = fields.StringField(required=True) - labels = DictField(value_types=string_types+(int,), required=True) + labels = DictField(value_types=string_types+(int,)) tags = ListField(items_types=string_types) system_tags = ListField(items_types=string_types) comment = fields.StringField() diff --git a/server/schema/services/models.conf b/server/schema/services/models.conf index 05f88d9..ed88536 100644 --- a/server/schema/services/models.conf +++ b/server/schema/services/models.conf @@ -324,7 +324,6 @@ required: [ uri name - labels ] properties { uri {