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

From Discord: Exploring the possibility of making partial behave like optional with exactness #2140

Closed
effect-bot opened this issue Feb 14, 2024 · 0 comments · Fixed by #2141 or #2135
Assignees

Comments

@effect-bot
Copy link

Summary

The user is trying to update from version 0.53.1 to 0.62.5 of a library and is wondering if it is possible to make the partial behavior similar to the optional behavior. They noticed that the optional type adds undefined to the schema by default and has an option to be exact, but the partial type seems to always behave as if the { exact: true } option is passed in.

Key takeaways:

  • The user wants to explore the possibility of making partial behave like optional with exactness.
  • The user is updating from version 0.53.1 to 0.62.5 of a library.
  • The optional type adds undefined to the schema by default and has an option for exactness.
  • The partial type seems to always behave as if the { exact: true } option is passed in.

Discord thread

https://discord.com/channels/795981131316985866/1206920245898518588

@gcanti gcanti self-assigned this Feb 14, 2024
gcanti added a commit that referenced this issue Feb 14, 2024
… mirroring the implementation in the `optional` API, closes #2140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants