projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug 682: NSD cross references between vnffgd classifier and rsp not validated
[osm/NBI.git]
/
osm_nbi
/
validation.py
diff --git
a/osm_nbi/validation.py
b/osm_nbi/validation.py
index
c6821c5
..
fe574e3
100644
(file)
--- a/
osm_nbi/validation.py
+++ b/
osm_nbi/validation.py
@@
-363,7
+363,7
@@
ns_scale = { # TODO for the moment it is only VDU-scaling
schema_version = {"type": "string", "enum": ["1.0"]}
schema_type = {"type": "string"}
schema_version = {"type": "string", "enum": ["1.0"]}
schema_type = {"type": "string"}
-vim_type = {"enum": ["openstack", "openvim", "vmware", "opennebula", "aws", "azure", "fos"]}
+vim_type =
shortname_schema #
{"enum": ["openstack", "openvim", "vmware", "opennebula", "aws", "azure", "fos"]}
vim_account_edit_schema = {
"title": "vim_account edit input schema",
vim_account_edit_schema = {
"title": "vim_account edit input schema",
@@
-410,7
+410,7
@@
vim_account_new_schema = {
"additionalProperties": False
}
"additionalProperties": False
}
-wim_type = {"enum": ["tapi", "onos", "odl", "dynpac", "fake"]}
+wim_type =
shortname_schema #
{"enum": ["tapi", "onos", "odl", "dynpac", "fake"]}
wim_account_edit_schema = {
"title": "wim_account edit input schema",
wim_account_edit_schema = {
"title": "wim_account edit input schema",
@@
-522,7
+522,7
@@
k8scluster_nets_schema = {
"title": "k8scluster nets input schema",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "k8scluster nets input schema",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
- "patternProperties": {".":
string_schema
},
+ "patternProperties": {".":
{"oneOf": [description_schema, null_schema]}
},
"minProperties": 1,
"additionalProperties": False
}
"minProperties": 1,
"additionalProperties": False
}