From df913c11116d0fbbb5b6d50a8f0128ae15b22e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BF=D0=BE=D0=BB=D1=8C=D0=B4=20=D0=9F?= =?UTF-8?q?=D0=B5=D0=BA=D0=B0=D0=BB=D1=8C=D0=BD?= Date: Fri, 26 Jun 2020 16:55:56 +0300 Subject: [PATCH 1/2] Fix Issue #164: generate choices schema without collectionFormat --- flask_restx/reqparse.py | 1 - 1 file changed, 1 deletion(-) diff --git a/flask_restx/reqparse.py b/flask_restx/reqparse.py index b36118d5..63260660 100644 --- a/flask_restx/reqparse.py +++ b/flask_restx/reqparse.py @@ -307,7 +307,6 @@ def __schema__(self): param["collectionFormat"] = "csv" if self.choices: param["enum"] = self.choices - param["collectionFormat"] = "multi" return param From 3c318cf43dcf21e1604fb891df660ef89e63b9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BF=D0=BE=D0=BB=D1=8C=D0=B4=20=D0=9F?= =?UTF-8?q?=D0=B5=D0=BA=D0=B0=D0=BB=D1=8C=D0=BD?= Date: Fri, 26 Jun 2020 17:02:27 +0300 Subject: [PATCH 2/2] Fix Issue #164: fixed tests --- tests/test_reqparse.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_reqparse.py b/tests/test_reqparse.py index c50a5f1d..18710f3b 100644 --- a/tests/test_reqparse.py +++ b/tests/test_reqparse.py @@ -943,7 +943,6 @@ def test_choices(self): "type": "string", "in": "query", "enum": ["a", "b"], - "collectionFormat": "multi", } ]