From: garciadeblas Date: Fri, 30 Nov 2018 21:59:45 +0000 (+0100) Subject: validation.py: fix typos in schemas with oneOf X-Git-Tag: v5.0.0~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F7013%2F1;p=osm%2FNBI.git validation.py: fix typos in schemas with oneOf Change-Id: I8b2f6dbb5b9168cf14bd2806f034183120a83628 Signed-off-by: garciadeblas --- diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 98fd511..839f91b 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -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 ]