X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=acb53c00e5941ab3916c68be96bfbe487ca0a53d;hp=a6b9421e4f5942674b8cbffdb3b6da3f5d5c8dd3;hb=c768937d5bb7b31e827aca36c9ab8c3cf1fdb34b;hpb=37de09105822b2b4db8b0ebac1ec5994af5d0fd9 diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index a6b9421..acb53c0 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 }