X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=f0b805461d84ced07ae753266cd344365d644885;hb=9e5eea3cb3c339537358eea45d04bc23e67d73fa;hp=b8953b553d5036d73a498a257780319ba9a975e6;hpb=cd65be33d44114e73936813eaf790e6a12b0df63;p=osm%2FNBI.git diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index b8953b5..f0b8054 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -1,5 +1,18 @@ # -*- coding: utf-8 -*- +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from jsonschema import validate as js_v, exceptions as js_e from http import HTTPStatus @@ -571,7 +584,7 @@ nsi_instantiate = { "nsiInstanceId": id_schema, "nsiName": name_schema, "nsiDescription": {"oneOf": [description_schema, {"type": "null"}]}, - "nstdId": string_schema, + "nstId": string_schema, "vimAccountId": id_schema, "ssh_keys": {"type": "string"}, "nsi_id": id_schema, @@ -581,7 +594,7 @@ nsi_instantiate = { "items": ns_instantiate }, }, - "required": ["nsiName", "nstdId", "vimAccountId"], + "required": ["nsiName", "nstId", "vimAccountId"], "additionalProperties": False }