Add labels to standalone models

This commit is contained in:
allegroai 2019-12-14 23:54:03 +02:00
parent 38284eef1f
commit 2728b3ed14
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -324,7 +324,6 @@
required: [
uri
name
labels
]
properties {
uri {