Skip to content

Commit

Permalink
Merge pull request #165 from leopold-p/fix_choices_schema
Browse files Browse the repository at this point in the history
Fix Issue #164: generate choices schema without collectionFormat
  • Loading branch information
ziirish authored Jul 15, 2020
2 parents c6b43ba + 3c318cf commit a28f9c1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion flask_restx/reqparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ def __schema__(self):
param["collectionFormat"] = "csv"
if self.choices:
param["enum"] = self.choices
param["collectionFormat"] = "multi"
return param


Expand Down
1 change: 0 additions & 1 deletion tests/test_reqparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,6 @@ def test_choices(self):
"type": "string",
"in": "query",
"enum": ["a", "b"],
"collectionFormat": "multi",
}
]

Expand Down

0 comments on commit a28f9c1

Please sign in to comment.