From: sousaedu Date: Thu, 7 Oct 2021 14:27:21 +0000 (+0100) Subject: Fix bug 1686 - widening validation parameters X-Git-Tag: v9.1.5~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F43%2F11243%2F2;p=osm%2FNBI.git Fix bug 1686 - widening validation parameters Change-Id: I754ef1a092c93aa308520373a8335fc68b471b51 Signed-off-by: sousaedu --- diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 9bc2624..e4b10ce 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -491,7 +491,7 @@ wim_account_edit_schema = { "wim": name_schema, "wim_type": wim_type, "wim_url": description_schema, - "user": shortname_schema, + "user": string_schema, "password": passwd_schema, "config": {"type": "object"} }, @@ -510,7 +510,7 @@ wim_account_new_schema = { "wim": name_schema, "wim_type": wim_type, "wim_url": description_schema, - "user": shortname_schema, + "user": string_schema, "password": passwd_schema, "config": { "type": "object", @@ -527,7 +527,7 @@ sdn_properties = { "name": name_schema, "type": {"type": "string"}, "url": {"type": "string"}, - "user": shortname_schema, + "user": string_schema, "password": passwd_schema, "config": {"type": "object"}, "description": description_schema, @@ -665,7 +665,7 @@ osmrepo_properties = { "description": description_schema, "type": osmrepo_types, "url": description_schema - # "user": shortname_schema, + # "user": string_schema, # "password": passwd_schema } osmrepo_new_schema = { @@ -801,7 +801,7 @@ user_new_schema = { "title": "New user schema", "type": "object", "properties": { - "username": shortname_schema, + "username": string_schema, "domain_name": shortname_schema, "password": passwd_schema, "projects": nameshort_list_schema, @@ -816,7 +816,7 @@ user_edit_schema = { "type": "object", "properties": { "password": passwd_schema, - "username": shortname_schema, # To allow User Name modification + "username": string_schema, # To allow User Name modification "projects": { "oneOf": [ nameshort_list_schema, @@ -1089,7 +1089,7 @@ authentication_schema = { "paramsBasic": { "type": "object", "properties": { - "userName": shortname_schema, + "userName": string_schema, "password": passwd_schema, }, },