-
-
Notifications
You must be signed in to change notification settings - Fork 684
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
Add drizzle-effect
package - an integration with @effect/schema
#2665
base: main
Are you sure you want to change the base?
Conversation
Similarly to `effect-zod` this package lets users automatically create schemas provided by the [effect](https://effect.website) ecosystem.
Co-authored-by: Amos Bastian <amosbastian@gmail.com>
9713087
to
c214e92
Compare
@AndriiSherman would you guys be interested in merging this PR? |
Would love to have this too |
Great work, looking forward to it @arekmaz! I think it would be awesome to get some kind of response from the Drizzle team, to get some clarity on whether this is a welcomed package in this repo or if it should live somewhere else... |
@amosbastian will this be merged? |
I don't have anything to do with drizzle, I'm just the guy who created the feature request (and am using it, works great) 😊 |
@AndriiSherman would love to get your thoughts here! |
Hey @amosbastian, exciting to hear you're using this successfully, is there somewhere others could install and use this until it's merged in? |
Just copy the |
@amosbastian I just wasn't sure if it was packaged and published to a registry. If that's how you're using it then that'll probably be how I test it out 👍 |
O yeah, it's not a package anywhere afaik. Btw, instead of importing from |
@arekmaz looks like this code doesn't support the See thread https://discordapp.com/channels/795981131316985866/1310313189233131541 |
@TGTGamer this code is a bit old as I'm waiting for any kind of response from the drizzle team, but seing as some people are using it, I'll do my best to update it soon to the newest schema version (that is merged into |
Thanks pal, let me know if there's anywhere I can assist you in this code, I'm using it in a company project so happy to dedicate some company time to helping you out :) |
@TGTGamer Right now I’m kinda stuck with finding a way how to verify the correctness of the created schemas in tests. The old approach - comparing serialized ast’s is crashing when given |
This is a proposal to add a package similar to
drizzle-zod
and heavily based on it, with analogical features, integrated with the effect ecosystem, @effect/schema documentation.This is a new version of this pull request
One big difference is I would like this to have MIT license if possible.
Feature requests:
#2187
Effect-TS/effect#3208
todo:
Schema.Struct
todos in case of interest in merging:
Schema
from coreeffect