allow extra domain input for token authentication
[osm/NBI.git] / osm_nbi / validation.py
index ac0dcd9..e40d0ec 100644 (file)
@@ -719,6 +719,7 @@ user_new_schema = {
     "type": "object",
     "properties": {
         "username": shortname_schema,
     "type": "object",
     "properties": {
         "username": shortname_schema,
+        "user_domain_name": shortname_schema,
         "password": passwd_schema,
         "projects": nameshort_list_schema,
         "project_role_mappings": project_role_mappings,
         "password": passwd_schema,
         "projects": nameshort_list_schema,
         "project_role_mappings": project_role_mappings,
@@ -757,6 +758,7 @@ project_new_schema = {
     "properties": {
         "name": shortname_schema,
         "admin": bool_schema,
     "properties": {
         "name": shortname_schema,
         "admin": bool_schema,
+        "project_domain_name": shortname_schema,
         "quotas": {
             "type": "object",
             "properties": {topic: integer0_schema for topic in topics_with_quota},
         "quotas": {
             "type": "object",
             "properties": {topic: integer0_schema for topic in topics_with_quota},