zod-fast-check
zod-fast-check copied to clipboard
Support ZodReadonly
a readonly schema results in the error
Unable to generate valid values for Zod schema. 'ZodReadonly' schemas are not supported (at path '.').
Based on what zod does under the hood, do a map and return Object.freeze() on the value.
I would like it if this worked as well. Currently I'm carrying a bunch of override calls to handle places in my schemas where I have read-only properties.