X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=a244ac11e17238cfb653391065e028d6d602f667;hb=a519a962c9bf008ddbee26500557b1de287f323a;hp=a6b9421e4f5942674b8cbffdb3b6da3f5d5c8dd3;hpb=37de09105822b2b4db8b0ebac1ec5994af5d0fd9;p=osm%2FNBI.git diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index a6b9421..a244ac1 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -381,7 +381,7 @@ vim_account_new_schema = { "description": description_schema, "vim": name_schema, "datacenter": name_schema, - "vim_type": {"enum": ["openstack", "openvim", "vmware", "opennebula", "aws", "azure"]}, + "vim_type": {"enum": ["openstack", "openvim", "vmware", "opennebula", "aws", "azure", "fos"]}, "vim_url": description_schema, # "vim_url_admin": description_schema, # "vim_tenant": name_schema, @@ -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,