diff --git a/apiserver/database/model/auth.py b/apiserver/database/model/auth.py index ee8f131..26c14d5 100644 --- a/apiserver/database/model/auth.py +++ b/apiserver/database/model/auth.py @@ -72,5 +72,5 @@ class User(DbModelMixin, AuthDocument): credentials = EmbeddedDocumentListField(Credentials, default=list) """ Credentials generated for this user """ - email = EmailField() + email = EmailField(unique=True) """ Email uniquely identifying the user """ diff --git a/apiserver/schema/services/tasks.conf b/apiserver/schema/services/tasks.conf index 4c18db9..73ca1bb 100644 --- a/apiserver/schema/services/tasks.conf +++ b/apiserver/schema/services/tasks.conf @@ -792,8 +792,14 @@ clone { description: "In case the new_project_name was specified returns the target project details" type: object properties { - id: "The ID of the target project" - name: "The name of the target project" + id { + description: "The ID of the target project" + type: string + } + name { + description: "The name of the target project" + type: string + } } } }