From: tierno Date: Fri, 18 Sep 2020 14:20:38 +0000 (+0000) Subject: fix validation error oneOf X-Git-Tag: v8.0.2~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F9721%2F1;p=osm%2FRO.git fix validation error oneOf Change-Id: I14735cc9a4326070feedeebef7113e8b9e62cca7 Signed-off-by: tierno --- diff --git a/RO/osm_ro/openmano_schemas.py b/RO/osm_ro/openmano_schemas.py index 3b077dbe..aa235ecb 100644 --- a/RO/osm_ro/openmano_schemas.py +++ b/RO/osm_ro/openmano_schemas.py @@ -106,7 +106,7 @@ config_schema = { "http_console_host": nameshort_schema, "http_console_ports": { "type": "array", - "items": {"OneOf": [ + "items": {"oneOf": [ port_schema, {"type": "object", "properties": {"from": port_schema, "to": port_schema}, "required": ["from", "to"]} ]} @@ -319,7 +319,7 @@ dhcp_schema = { "type": "object", "properties":{ "enabled": boolean_schema, - "start-address": {"OneOf": [null_schema, ip_schema]}, + "start-address": {"oneOf": [null_schema, ip_schema]}, "count": integer0_schema }, # "required": ["start-address", "count"], @@ -1247,7 +1247,7 @@ sdn_port_mapping_schema = { "items": { "type": "object", "properties": { - "pci": {"OneOf": [null_schema, pci_extended_schema]}, # pci_schema, + "pci": {"oneOf": [null_schema, pci_extended_schema]}, # pci_schema, "switch_port": nameshort_schema, "switch_id": nameshort_schema, "switch_dpid": nameshort_schema,