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

Fallback to deriveUnknown if the schema is not the expected schema #514

Merged
merged 2 commits into from
Feb 17, 2023

Conversation

vigoo
Copy link
Contributor

@vigoo vigoo commented Feb 17, 2023

A record or enum type may have a custom schema (even Schema.fail), but if we have a summoned implicit for the derived type class in scope, we can ignore this mismatch and use the summoned value.

@vigoo vigoo requested a review from a team as a code owner February 17, 2023 17:04
@vigoo vigoo merged commit db9c908 into zio:main Feb 17, 2023
@vigoo vigoo deleted the deriver-fallback branch February 17, 2023 17:50
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.

2 participants