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
As discussed on Discord ;)
When using inputs with type number, the conversion work with the following schema:
inputs
number
const schema = z .object({ min: z.number(), max: z.number(), })
But not with this one (with .refine()):
.refine()
const schema = z .object({ min: z.number(), max: z.number(), }) .refine((data) => data.min < data.max, { message: "Min < Max", path: ["min"], })
I receive the error:
Expected number, received string
The text was updated successfully, but these errors were encountered:
c215858
No branches or pull requests
As discussed on Discord ;)
When using
inputs
with typenumber
, the conversion work with the following schema:But not with this one (with
.refine()
):I receive the error:
The text was updated successfully, but these errors were encountered: