We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if useDecimalJs = true is defined, the helper schema for Decimal fields is created but not used.
details:
creates Helper (without assignment to const)
z .instanceof(Decimal) .or(z.string()) .or(z.number()) .refine((value) => { try { return new Decimal(value) } catch (error) { return false } }) .transform((value) => new Decimal(value))
does not use it in schema (ex. property price)
export const product = z.object({ id: z.string(), name: z.string(), price: z.number().nullish(), })
The text was updated successfully, but these errors were encountered:
Actually utilize decimal.js schema (fixes #123)
5fac52d
@michiim @CarterGrimmeisen Did you find a fix for this? Is it possible for me to use the 1.0-beta branch instead on my project (which has this fix)
Can I do this?
Sorry, something went wrong.
@ElhanM zod-prisma is dead. Use https://github.com/chrishoermann/zod-prisma-types instead.
No branches or pull requests
if useDecimalJs = true is defined, the helper schema for Decimal fields is created but not used.
details:
creates Helper (without assignment to const)
does not use it in schema (ex. property price)
The text was updated successfully, but these errors were encountered: