Skip to content

Support marshmallow 3 and 4#606

Open
tomascorrea wants to merge 2 commits intoCornices:mainfrom
tomascorrea:support-marshmallow-3-and-4
Open

Support marshmallow 3 and 4#606
tomascorrea wants to merge 2 commits intoCornices:mainfrom
tomascorrea:support-marshmallow-3-and-4

Conversation

@tomascorrea
Copy link
Copy Markdown

🚀 Maintainer Wanted! This project is looking for a new steward to keep it alive! 🌱 If you still care for this project 🛠️, drop a comment or a PR removing this warning! 🎉✨

tomascorrea and others added 2 commits March 28, 2026 20:20
- Replace Schema.context with contextvars.ContextVar (cornice_request)
- Remove removed Meta options (strict, ordered)
- Move EXCLUDE import from marshmallow.utils to marshmallow
- Replace metadata={"load_from": ...} with data_key parameter
- Replace missing= with load_default= in test schemas
- Remove pre-2.10 _message_normalizer compat code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add _marshmallow_compat.py with version detection and shims for
  EXCLUDE import and Schema.context differences
- Use contextvars.ContextVar alongside Schema.context for v3 compat
- Add tox.ini with marshmallow3 and marshmallow4 test environments
- Add marshmallow-version matrix dimension to CI workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant