resolvers icon indicating copy to clipboard operation
resolvers copied to clipboard

Support `@effect/schema`

Open licarth opened this issue 1 year ago • 4 comments

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

licarth avatar Mar 04 '24 13:03 licarth

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 ?

dearlordylord avatar Mar 09 '24 17:03 dearlordylord

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.

jbmusso avatar Apr 26 '24 14:04 jbmusso

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 avatar May 04 '24 04:05 binaryartifex

pull request is awaiting review - https://github.com/react-hook-form/resolvers/pull/676

binaryartifex avatar May 06 '24 10:05 binaryartifex

Released in 3.4.0.

jorisre avatar Jul 03 '24 07:07 jorisre