-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
Unsupported schema Error while applying Partial to Schema class #3113
Comments
It raises an error because the Schema.Struct({
id: Schema.Number,
title: Schema.String,
completed: Schema.Boolean
}) to However, this should work: const UpdateTodoParams = Schema.partial(Schema.Struct(Todo.fields), { exact: true }) |
Do you have the |
Yep that was the missing piece. Sorry, I overlooked the documentation here. Thanks you very much for this really powerful and composable library. |
What version of Effect is running?
3.4.3
What steps can reproduce the bug?
What is the expected behavior?
It should not throw any error. Also it is unionising properties with
undefined
forUpdateTodoParams
toeven though
{exact: true}
is passed. My understanding is that it should opt-out of that.What do you see instead?
See following error in the terminal
Additional information
The text was updated successfully, but these errors were encountered: