validation.py: fix typos in schemas with oneOf 13/7013/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 30 Nov 2018 21:59:45 +0000 (22:59 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 30 Nov 2018 21:59:45 +0000 (22:59 +0100)
Change-Id: I8b2f6dbb5b9168cf14bd2806f034183120a83628
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_nbi/validation.py

index 98fd511..839f91b 100644 (file)
@@ -486,9 +486,9 @@ pdu_edit_schema = {
         "type": nameshort_schema,
         "description": description_schema,
         "shared": bool_schema,
-        "vims": {"oneOff": [array_edition_schema, nameshort_list_schema]},
-        "vim_accounts": {"oneOff": [array_edition_schema, nameshort_list_schema]},
-        "interfaces": {"oneOff": [
+        "vims": {"oneOf": [array_edition_schema, nameshort_list_schema]},
+        "vim_accounts": {"oneOf": [array_edition_schema, nameshort_list_schema]},
+        "interfaces": {"oneOf": [
             array_edition_schema,
             {
                 "type": "array",
@@ -521,7 +521,7 @@ user_edit_schema = {
     "properties": {
         "password": passwd_schema,
         "projects": {
-            "oneOff": [
+            "oneOf": [
                 nameshort_list_schema,
                 array_edition_schema
             ]