projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing bug 732
[osm/NBI.git]
/
osm_nbi
/
validation.py
diff --git
a/osm_nbi/validation.py
b/osm_nbi/validation.py
index
a6b9421
..
acb53c0
100644
(file)
--- 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,
"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,
"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,
"type": "object",
"properties": {
"name": shortname_schema,
+ "root": bool_schema,
},
},
- "required": ["name"],
+ "required": ["name"
, "root"
],
"additionalProperties": True
}
roles_edit_schema = {
"additionalProperties": True
}
roles_edit_schema = {
@@
-657,10
+658,9
@@
roles_edit_schema = {
"title": "Roles edit schema for administrators",
"type": "object",
"properties": {
"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
}
"additionalProperties": True,
"minProperties": 1
}