Skip to content

Commit

Permalink
fix: properly set pattern in reqparse object list when using option
Browse files Browse the repository at this point in the history
"append"
  • Loading branch information
alexissavin authored and ziirish committed Oct 16, 2022
1 parent 401d087 commit a37126d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flask_restx/reqparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ def __schema__(self):
)
if self.action == "append":
param["items"] = {"type": param["type"]}
if "pattern" in param:
param["items"]["pattern"] = param.pop("pattern")
param["type"] = "array"
param["collectionFormat"] = "multi"
if self.action == "split":
Expand Down

0 comments on commit a37126d

Please sign in to comment.