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

Implement deny_unknown_fields class attribute #605

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Conversation

yukinarit
Copy link
Owner

Added a deny_unknown_fields feature for stricter deserialization, rejecting any unexpected or unrecognized fields during deserialization.

#596

@yukinarit yukinarit added the enhancement New feature or request label Oct 27, 2024
Copy link

Please consider formatting your code according to the standards described here: https://github.com/yukinarit/pyserde/blob/main/CONTRIBUTING.md

Added a `deny_unknown_fields` feature for stricter
deserialization, rejecting any unexpected or unrecognized fields
during deserialization.
@yukinarit yukinarit force-pushed the deny-unknown-fields branch from a133ce6 to bff366f Compare October 27, 2024 11:57
@yukinarit yukinarit force-pushed the deny-unknown-fields branch from 4d2c02b to dac6c33 Compare October 28, 2024 07:40
@yukinarit yukinarit marked this pull request as ready for review October 28, 2024 07:42
@yukinarit yukinarit linked an issue Oct 28, 2024 that may be closed by this pull request
@yukinarit yukinarit merged commit 6aeb49e into main Oct 28, 2024
7 checks passed
@yukinarit yukinarit deleted the deny-unknown-fields branch October 28, 2024 07:43
github-actions bot pushed a commit that referenced this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extra fields in dict are ignored, instead of throwing an error
1 participant