X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=c79cdaf05ebd6ee67800643d3e8ecd4a725ac164;hp=0ec83040a4904e999b38070be15aa9d0a75b9f63;hb=f0637057dc1be391f068c7e2b9c8f81b16f0921e;hpb=fd160573d24178179c134deb4850bdf2425233cf diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 0ec8304..c79cdaf 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -302,6 +302,7 @@ ns_action = { # TODO for the moment it is only contemplated the vnfd primitive "member_vnf_index": name_schema, "vnf_member_index": name_schema, # TODO for backward compatibility. To remove in future "vdu_id": name_schema, + "vdu_count_index": integer0_schema, "primitive": name_schema, "primitive_params": {"type": "object"}, }, @@ -420,7 +421,12 @@ wim_account_new_schema = { "wim_url": description_schema, "user": shortname_schema, "password": passwd_schema, - "config": {"type": "object"} + "config": { + "type": "object", + "patternProperties": { + ".": {"not": {"type": "null"}} + } + } }, "required": ["name", "wim_url", "wim_type"], "additionalProperties": False