Closed brettz9 closed 1 day ago
Named Superrefinements whould be possible with a functionsdictionary have tested it on the deserialization branch
looks like that:
If you are interessed i can make a pull request
Named Superrefinements whould be possible with a functionsdictionary have tested it on the deserialization branch
looks like that:
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
...
@rebeccaEller Do you think you could submit a PR?
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