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

Add override def ignoreUnknownKeys/@ignoreUnknownKeys(b: Boolean) to allow treatment of unknown keys to be configurable #548

Merged
merged 6 commits into from
Jan 11, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jan 11, 2024

Previously, they were always ignored. Now you can opt-in to turn them into an error on a per-case-class basis via an annotation, or globally via an override (which you can then disable on a per-case-class basis using the same annotation)

Fixes #537

@lihaoyi lihaoyi merged commit 91261bd into main Jan 11, 2024
8 checks passed
@lolgab lolgab deleted the issue537 branch January 11, 2024 14:29
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.

Strictness on keyset match when reading / parsing to case class
1 participant