X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=3615943ceadd4de39de0c7adc3b95bf41f91959b;hp=e40d0ec5c65f4c0a7df5d43be933152144e037a5;hb=ad6d533c806bce1b3506c22570838570a1055da7;hpb=6486f7485862dc51758864e6cf7d5d2523751873 diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index e40d0ec..3615943 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -657,7 +657,6 @@ pdu_new_schema = { "required": ["name", "type", "interfaces"], "additionalProperties": False } - pdu_edit_schema = { "title": "pdu edit input schema", "$schema": "http://json-schema.org/draft-04/schema#", @@ -682,6 +681,22 @@ pdu_edit_schema = { "minProperties": 1 } +# VNF PKG OPERATIONS +vnfpkgop_new_schema = { + "title": "VNF PKG operation creation input schema", + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "lcmOperationType": string_schema, + "vnfPkgId": id_schema, + "kdu_name": name_schema, + "primitive": name_schema, + "primitive_params": {"type": "object"}, + }, + "required": ["lcmOperationType", "vnfPkgId", "kdu_name", "primitive", "primitive_params"], + "additionalProperties": False +} + # USERS project_role_mappings = { "title": "list pf projects/roles", @@ -719,7 +734,7 @@ user_new_schema = { "type": "object", "properties": { "username": shortname_schema, - "user_domain_name": shortname_schema, + "domain_name": shortname_schema, "password": passwd_schema, "projects": nameshort_list_schema, "project_role_mappings": project_role_mappings, @@ -758,7 +773,7 @@ project_new_schema = { "properties": { "name": shortname_schema, "admin": bool_schema, - "project_domain_name": shortname_schema, + "domain_name": shortname_schema, "quotas": { "type": "object", "properties": {topic: integer0_schema for topic in topics_with_quota},