Modify code for swagger return msg 65/29265/1
authorfengyuanxing <feng.yuanxing@zte.com.cn>
Fri, 26 Jan 2018 07:21:29 +0000 (15:21 +0800)
committerfengyuanxing <feng.yuanxing@zte.com.cn>
Fri, 26 Jan 2018 07:21:29 +0000 (15:21 +0800)
Change-Id: I04b81f584dc4248e16efd1bc9d38f2b554923994
Issue-ID: VFC-685
Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
catalog/packages/views.py

index 5a5a906..84abdf4 100644 (file)
@@ -44,8 +44,7 @@ logger = logging.getLogger(__name__)
         status.HTTP_500_INTERNAL_SERVER_ERROR: openapi.Response(
             'error message',
             openapi.Schema(
-                type=openapi.TYPE_STRING,
-                pattern='failed'))})
+                type=openapi.TYPE_STRING))})
 @swagger_auto_schema(
     method='GET',
     operation_description="Query NS packages",