Skip to content

Many Option#2271

Merged
lafrech merged 1 commit intomarshmallow-code:devfrom
deckar01:2270-meta-many
Aug 20, 2024
Merged

Many Option#2271
lafrech merged 1 commit intomarshmallow-code:devfrom
deckar01:2270-meta-many

Conversation

@deckar01
Copy link
Copy Markdown
Member

Allow declaring that a schema expects a collection by default.

Resolves #2270

@lafrech
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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