X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=681a67dadc491e234f37131b2a21876737684a55;hp=153086b37eaf05baa0a299aaba6c0f9f88a17438;hb=80b6fed1031d8ae7b20720d869b517d4ff65763f;hpb=4568a372eb5a204e04d917213de03ec51f9110c1 diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 153086b..681a67d 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -305,6 +305,7 @@ additional_params_for_vnf = { "kdu_model": name_schema, "k8s-namespace": name_schema, "config-units": integer1_schema, # number of configuration units of this knf, by default 1 + "kdu-deployment-name": name_schema, }, "required": ["kdu_name"], "minProperties": 2, @@ -496,7 +497,7 @@ vim_account_edit_schema = { # "vim_url_admin": description_schema, # "vim_tenant": name_schema, "vim_tenant_name": name_schema, - "vim_user": shortname_schema, + "vim_user": string_schema, "vim_password": passwd_schema, "vca": id_schema, "config": {"type": "object"}, @@ -520,7 +521,7 @@ vim_account_new_schema = { # "vim_url_admin": description_schema, # "vim_tenant": name_schema, "vim_tenant_name": name_schema, - "vim_user": shortname_schema, + "vim_user": string_schema, "vim_password": passwd_schema, "vca": id_schema, "config": {"type": "object"}, @@ -548,7 +549,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"}, }, @@ -567,7 +568,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", @@ -582,7 +583,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, @@ -702,7 +703,7 @@ vca_new_schema = { "name": name_schema, "description": description_schema, "endpoints": description_list_schema, - "user": shortname_schema, + "user": string_schema, "secret": passwd_schema, "cacert": long_description_schema, "lxd-cloud": shortname_schema, @@ -733,7 +734,7 @@ vca_edit_schema = { "description": description_schema, "endpoints": description_list_schema, "port": integer1_schema, - "user": shortname_schema, + "user": string_schema, "secret": passwd_schema, "cacert": long_description_schema, "lxd-cloud": shortname_schema, @@ -776,7 +777,7 @@ osmrepo_properties = { "description": description_schema, "type": osmrepo_types, "url": description_schema - # "user": shortname_schema, + # "user": string_schema, # "password": passwd_schema } osmrepo_new_schema = { @@ -906,7 +907,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, @@ -921,7 +922,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, array_edition_schema]}, "project_role_mappings": project_role_mappings, "add_project_role_mappings": project_role_mappings, @@ -1215,7 +1216,7 @@ authentication_schema = { "paramsBasic": { "type": "object", "properties": { - "userName": shortname_schema, + "userName": string_schema, "password": passwd_schema, }, },