zodex icon indicating copy to clipboard operation
zodex copied to clipboard

Custom schemas/refinements

Open brettz9 opened this issue 2 years ago • 1 comments

Just a heads up that I'd hope we could add a mechanism for refinements/customs schemas at some point.

However, I think this would be blocked by https://github.com/colinhacks/zod/issues/2515

brettz9 avatar Jun 23 '23 23:06 brettz9

Named Superrefinements whould be possible with a functionsdictionary have tested it on the deserialization branch

looks like that: grafik

If you are interessed i can make a pull request

rebeccaEller avatar Apr 12 '24 09:04 rebeccaEller

Named Superrefinements whould be possible with a functionsdictionary have tested it on the deserialization branch

looks like that: grafik

If you are interessed i can make a pull request

Looks to me to be a very good solution, at least if Zod is not going to support named effects so as to avoid the need for passing options to zerialize...

brettz9 avatar Jun 07 '24 13:06 brettz9

@rebeccaEller Do you think you could submit a PR?

brettz9 avatar Jun 13 '24 02:06 brettz9