From 2413303699535ab9b36ee235255e9dd991896ca8 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Wed, 5 Sep 2018 13:23:40 +0800 Subject: [PATCH] Fix swagger export error for catalog Change-Id: I125042aa8a7c3e556ae3e2f930f789d34ee8a81f Issue-ID: VFC-1093 Signed-off-by: fujinhua --- catalog/packages/views/ns_descriptor_views.py | 4 ++-- catalog/packages/views/pnf_descriptor_views.py | 4 ++-- catalog/packages/views/vnf_package_views.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/catalog/packages/views/ns_descriptor_views.py b/catalog/packages/views/ns_descriptor_views.py index d47fb176..589ab8ee 100644 --- a/catalog/packages/views/ns_descriptor_views.py +++ b/catalog/packages/views/ns_descriptor_views.py @@ -46,7 +46,7 @@ logger = logging.getLogger(__name__) operation_description="Delete a NSD", request_body=no_body, responses={ - status.HTTP_204_NO_CONTENT: None, + status.HTTP_204_NO_CONTENT: "No content", status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error" } ) @@ -138,7 +138,7 @@ def ns_descriptors_rc(request): operation_description="Download NSD content", request_body=no_body, responses={ - status.HTTP_204_NO_CONTENT: None, + status.HTTP_204_NO_CONTENT: "No content", status.HTTP_404_NOT_FOUND: 'NSD does not exist.', status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error" } diff --git a/catalog/packages/views/pnf_descriptor_views.py b/catalog/packages/views/pnf_descriptor_views.py index 15d7e643..caa7ac23 100644 --- a/catalog/packages/views/pnf_descriptor_views.py +++ b/catalog/packages/views/pnf_descriptor_views.py @@ -46,7 +46,7 @@ logger = logging.getLogger(__name__) operation_description="Delete a PNFD", request_body=no_body, responses={ - status.HTTP_204_NO_CONTENT: None, + status.HTTP_204_NO_CONTENT: "No content", status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error" } ) @@ -134,7 +134,7 @@ def pnf_descriptors_rc(request): operation_description="Upload PNFD content", request_body=no_body, responses={ - status.HTTP_204_NO_CONTENT: None, + status.HTTP_204_NO_CONTENT: "No content", status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error" } ) diff --git a/catalog/packages/views/vnf_package_views.py b/catalog/packages/views/vnf_package_views.py index 01eb5be2..da88dfd7 100644 --- a/catalog/packages/views/vnf_package_views.py +++ b/catalog/packages/views/vnf_package_views.py @@ -181,7 +181,7 @@ def upload_from_uri_c(request, **kwargs): operation_description="Delete an individual VNF package resource", request_body=no_body, responses={ - status.HTTP_204_NO_CONTENT: None, + status.HTTP_204_NO_CONTENT: "No content", status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error" } ) -- 2.16.6