Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SomeField(many=True) vs List(SomeField()) #1346

Closed
jtrakk opened this issue Aug 16, 2019 · 1 comment
Closed

SomeField(many=True) vs List(SomeField()) #1346

jtrakk opened this issue Aug 16, 2019 · 1 comment
Labels

Comments

@jtrakk
Copy link

jtrakk commented Aug 16, 2019

I've always used List(SomeField()) and haven't really understood the purpose of SomeField(many=True). Is there a guideline for when I'd want to use SomeField(many=True) instead of List(SomeField())? Thanks.

@sloria
Copy link
Member

sloria commented Aug 17, 2019

See #779 ; we are considering deprecating Nested(many=True) in favor of List(Nested()). It used to be Nested(many=True) had better error reporting behavior and was more performant, but in marshmallow 3 they will be in parity with each other.

@sloria sloria closed this as completed Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants