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

Many Option #2271

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Many Option #2271

merged 1 commit into from
Aug 20, 2024

Conversation

deckar01
Copy link
Member

Allow declaring that a schema expects a collection by default.

Resolves #2270

@lafrech
Copy link
Member

lafrech commented May 24, 2024

LGTM.

Not that it really matters but I think I'd test the whole payload rather than just the length. I mean I see no reason not to.

Just a nitpick. We can merge as is.

Thanks.

@deckar01
Copy link
Member Author

I should probably note that I have advocated for Field to adopt the load()/dump() interface to solve this use case in the past, but this solution being so simple and covering the most practical use case kept me from beating that drum again. 😄

@lafrech
Copy link
Member

lafrech commented Aug 20, 2024

@sloria, may I merge this and #2279 then release or do you want some time to review?

@sloria
Copy link
Member

sloria commented Aug 20, 2024

@lafrech Go for it. Thank you both! ❤️

@lafrech lafrech merged commit 78cbc09 into marshmallow-code:dev Aug 20, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting many=True through Meta - SchemaOpts
3 participants