fix bug 749 750: Returns a proper Location Header for project-create
[osm/NBI.git] / osm_nbi / validation.py
index f6c90c1..a244ac1 100644 (file)
@@ -648,8 +648,9 @@ roles_new_schema = {
     "type": "object",
     "properties": {
         "name": shortname_schema,
+        "root": bool_schema,
     },
-    "required": ["name"],
+    "required": ["name", "root"],
     "additionalProperties": True
 }
 roles_edit_schema = {
@@ -657,10 +658,9 @@ roles_edit_schema = {
     "title": "Roles edit schema for administrators",
     "type": "object",
     "properties": {
-        "_id": id_schema,
-        "name": shortname_schema,
+        "root": bool_schema,
     },
-    "required": ["_id", "name"],
+    "required": ["root"],
     "additionalProperties": True,
     "minProperties": 1
 }
@@ -712,7 +712,7 @@ nsi_instantiate = {
     "type": "object",
     "properties": {
         "lcmOperationType": string_schema,
-        "nsiInstanceId": id_schema,
+        "netsliceInstanceId": id_schema,
         "nsiName": name_schema,
         "nsiDescription": {"oneOf": [description_schema, null_schema]},
         "nstId": string_schema,