From 9e1885cac0013e5a8f02de5c30df1918ce8773d7 Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Fri, 9 Feb 2018 15:30:22 +0800 Subject: [PATCH] Modify vfc-vnfmgr swagger schemas Change-Id: Ie8275526326b072e1adbaa85337b3fdcf187d833 Issue-ID: VFC-670 Signed-off-by: ying.yunlong --- LICENSE | 4 ++-- mgr/mgr/vnfreg/serializers.py | 13 ++++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/LICENSE b/LICENSE index f83f847..356b8d5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2017 ZTE Corporation. +Copyright 2018 ZTE Corporation. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -12,4 +12,4 @@ 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. -Micro service of vnf configure management. +Micro service of gvnfm vnf configure management. diff --git a/mgr/mgr/vnfreg/serializers.py b/mgr/mgr/vnfreg/serializers.py index d2b446c..9157e21 100644 --- a/mgr/mgr/vnfreg/serializers.py +++ b/mgr/mgr/vnfreg/serializers.py @@ -59,7 +59,9 @@ class CpSerializer(serializers.Serializer): allow_null=True) cpdId = serializers.CharField( help_text="cpdId", - required=True, max_length=200, allow_null=True) + required=True, + max_length=200, + allow_null=True) class SpecificDataSerializer(serializers.Serializer): @@ -76,9 +78,14 @@ class SpecificDataSerializer(serializers.Serializer): class ConfigDataSerializer(serializers.Serializer): - cp = CpSerializer(help_text="cps", many=True, allow_null=True) + cp = CpSerializer( + help_text="cps", + many=True, + allow_null=True) vnfSpecificData = SpecificDataSerializer( - help_text="vnfSpecificData", required=True, allow_null=True) + help_text="vnfSpecificData", + required=True, + allow_null=True) class VnfConfigSerializer(serializers.Serializer): -- 2.16.6