Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add "bundle_errors" options to send multiple errors for one parse #58
Hi, I just started using webargs with the purpose to fully replace
However, with reqparse you have a
This option is very useful to avoid many roundtrips between client and server when you have a complex form or web service.
I could not find an equivalent feature in webargs, does such a feature exist? If not, it would be very nice to have and that would put webargs to par (and even better) with reqparse.
"Error bundling" has not yet been implemented in webargs, though it's definitely a feature I would like to see.
One solution is to use marshmallow in tandem with webargs (I see Flask-RESTful is working towards replacing it's marshalling module in favor of marshmallow) because it does have the error-bundling you're looking for. You would use
I would accept a PR implementing this feature in webargs, but for the time being, marshmallow's validation is the way to go.
Thanks for the comment.
I will take a look at webargs source and see if I can easily add this feature and propose a PR for it. However, I think that won't be until a few weeks more.
I will put updates here if needed.