diff options
author | hongyuzhao <zhao.hongyu@zte.com.cn> | 2020-01-23 15:03:53 +0800 |
---|---|---|
committer | hongyuzhao <zhao.hongyu@zte.com.cn> | 2020-01-23 15:06:36 +0800 |
commit | 3ae91013f198d512364579822e37fc35b5996f49 (patch) | |
tree | bb59907e810f9dc93c823da7de26c0f786411583 /catalog/packages/serializers | |
parent | 7cec085b66fe866444c9d043cbaf958bc5029602 (diff) |
Modify vnfProducts definition in swagger
Change-Id: I1fba8b3081503d94dc7c0565c1ad9b9b3dce6143
Issue-ID: MODELING-288
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Diffstat (limited to 'catalog/packages/serializers')
-rw-r--r-- | catalog/packages/serializers/vnf_pkg_notifications.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/catalog/packages/serializers/vnf_pkg_notifications.py b/catalog/packages/serializers/vnf_pkg_notifications.py index a0fd495..72ae6fe 100644 --- a/catalog/packages/serializers/vnf_pkg_notifications.py +++ b/catalog/packages/serializers/vnf_pkg_notifications.py @@ -43,7 +43,8 @@ class vnfProductsSerializer(serializers.Serializer): required=True, allow_null=False ) - versions = VersionSerializer( + versions = serializers.ListField( + child=VersionSerializer(), help_text="match VNF packages that contain " "VNF products with certain versions", required=False, @@ -58,7 +59,8 @@ class vnfProductsProvidersSerializer(serializers.Serializer): required=True, allow_null=False ) - vnfProducts = vnfProductsSerializer( + vnfProducts = serializers.ListField( + child=vnfProductsSerializer(), help_text="match VNF packages that contain " "VNF products with certain product names, " "from one particular provider", |