From f9c8691ef5824c2203dc8b84417e146b53efbe61 Mon Sep 17 00:00:00 2001 From: tierno Date: Fri, 18 Sep 2020 14:20:38 +0000 Subject: [PATCH] fix validation error oneOf Change-Id: I14735cc9a4326070feedeebef7113e8b9e62cca7 Signed-off-by: tierno --- RO/osm_ro/openmano_schemas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, -- 2.25.1