From: tierno Date: Fri, 18 Sep 2020 14:18:55 +0000 (+0000) Subject: fix validation error oneOf X-Git-Tag: release-v9.0-start~18 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=commitdiff_plain;h=195a36c9dad758c658e6fd69b0965e366cc632ab fix validation error oneOf Change-Id: Iaa4ecf3b5b27136d99d26aea59363de1dbb55477 Signed-off-by: tierno --- diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index beea575..5b6cce1 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -286,7 +286,7 @@ ns_instantiate = { "nsDescription": {"oneOf": [description_schema, null_schema]}, "nsdId": id_schema, "vimAccountId": id_schema, - "wimAccountId": {"OneOf": [id_schema, bool_schema, null_schema]}, + "wimAccountId": {"oneOf": [id_schema, bool_schema, null_schema]}, "placement-engine": string_schema, "placement-constraints": object_schema, "additionalParamsForNs": object_schema, @@ -328,10 +328,10 @@ ns_instantiate = { "type": "object", "properties": { "name": string_schema, - "vim-network-name": {"OneOf": [string_schema, object_schema]}, - "vim-network-id": {"OneOf": [string_schema, object_schema]}, + "vim-network-name": {"oneOf": [string_schema, object_schema]}, + "vim-network-id": {"oneOf": [string_schema, object_schema]}, "ns-net": object_schema, - "wimAccountId": {"OneOf": [id_schema, bool_schema, null_schema]}, + "wimAccountId": {"oneOf": [id_schema, bool_schema, null_schema]}, "ip-profile": object_schema, "provider-network": provider_network_schema, "vnfd-connection-point-ref": { @@ -938,8 +938,8 @@ nsi_vld_instantiate = { "type": "object", "properties": { "name": string_schema, - "vim-network-name": {"OneOf": [string_schema, object_schema]}, - "vim-network-id": {"OneOf": [string_schema, object_schema]}, + "vim-network-name": {"oneOf": [string_schema, object_schema]}, + "vim-network-id": {"oneOf": [string_schema, object_schema]}, "ip-profile": object_schema, }, "required": ["name"],