Skip to content

Commit a28f9c1

Browse files
authored
Merge pull request #165 from leopold-p/fix_choices_schema
Fix Issue #164: generate choices schema without collectionFormat
2 parents c6b43ba + 3c318cf commit a28f9c1

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

flask_restx/reqparse.py

-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ def __schema__(self):
307307
param["collectionFormat"] = "csv"
308308
if self.choices:
309309
param["enum"] = self.choices
310-
param["collectionFormat"] = "multi"
311310
return param
312311

313312

tests/test_reqparse.py

-1
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,6 @@ def test_choices(self):
943943
"type": "string",
944944
"in": "query",
945945
"enum": ["a", "b"],
946-
"collectionFormat": "multi",
947946
}
948947
]
949948

0 commit comments

Comments
 (0)