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

Support @effect/schema #666

Open
licarth opened this issue Mar 4, 2024 · 4 comments
Open

Support @effect/schema #666

licarth opened this issue Mar 4, 2024 · 4 comments

Comments

@licarth
Copy link

licarth commented Mar 4, 2024

Is your feature request related to a problem? Please describe.
@effect/schema is Effect's Schema library.

Describe the solution you'd like
We could write a resolver to support it.

Describe alternatives you've considered
N/A

Additional context
@effect/schema API ref

@dearlordylord
Copy link
Contributor

dearlordylord commented Mar 9, 2024

I have just started looking for an effect/schema resolver, and It's funny to see the issue created 5 days ago. What a nice issue number too. Would you need a hand in writing the resolver @licarth ?

@jbmusso
Copy link

jbmusso commented Apr 26, 2024

To anyone interested, there's an ongoing discussion about making an Effect schema resolver here (Effect Discord server): https://discord.com/channels/795981131316985866/1227988682917675110 with an example implementation.

@binaryartifex
Copy link
Contributor

FrostyGhostMan here from the discussion referenced by @jbmusso. just about done doing a relative like-for-like of all the tests in the zod resolver against the effect one i pasted into the discussion. The ArrayFormatter is a real life saver for parsing the errors into something react-hook-form can use. ill publish this early next week, hopefully monday. So far its handled everything ive thrown at it. Havn't tested the native validation yet, i suspect the logic for that might need looking at. ill give a shoutout here when its published.

@binaryartifex
Copy link
Contributor

pull request is awaiting review - #676

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

No branches or pull requests

4 participants