Fix tasks.clone schema

Reintroduce email field uniqueness
This commit is contained in:
allegroai 2021-01-05 18:26:14 +02:00
parent b97a6084ce
commit 30909df73f
2 changed files with 9 additions and 3 deletions

View File

@ -72,5 +72,5 @@ class User(DbModelMixin, AuthDocument):
credentials = EmbeddedDocumentListField(Credentials, default=list) credentials = EmbeddedDocumentListField(Credentials, default=list)
""" Credentials generated for this user """ """ Credentials generated for this user """
email = EmailField() email = EmailField(unique=True)
""" Email uniquely identifying the user """ """ Email uniquely identifying the user """

View File

@ -792,8 +792,14 @@ clone {
description: "In case the new_project_name was specified returns the target project details" description: "In case the new_project_name was specified returns the target project details"
type: object type: object
properties { properties {
id: "The ID of the target project" id {
name: "The name of the target project" description: "The ID of the target project"
type: string
}
name {
description: "The name of the target project"
type: string
}
} }
} }
} }