Skip to content

Reflect field load-only and dump-only flags on schema - #3031

Open
nightcityblade wants to merge 1 commit into
marshmallow-code:devfrom
nightcityblade:fix/issue-1857
Open

Reflect field load-only and dump-only flags on schema#3031
nightcityblade wants to merge 1 commit into
marshmallow-code:devfrom
nightcityblade:fix/issue-1857

Conversation

@nightcityblade

Copy link
Copy Markdown

Fixes #1857

Summary

  • include field-level load_only declarations in Schema.load_only
  • include field-level dump_only declarations in Schema.dump_only
  • add regression coverage for both symmetric options

Testing

  • uv run pytest
  • uv run pytest tests/test_schema.py
  • uv run pre-commit run --files src/marshmallow/schema.py tests/test_schema.py

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.

Schema.dump_only returns empty set if fields explicitly declared dump_only

1 participant