fix validation error oneOf 21/9721/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 18 Sep 2020 14:20:38 +0000 (14:20 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 18 Sep 2020 14:20:38 +0000 (14:20 +0000)
Change-Id: I14735cc9a4326070feedeebef7113e8b9e62cca7
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
RO/osm_ro/openmano_schemas.py

index 3b077db..aa235ec 100644 (file)
@@ -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,