8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
z.stringbool()
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
Minimal reproduction:
export const _userSchema = z.interface({ daily_1: z.string().meta({description: 'oke', primary: true}), d: z.email() // daily_report_mail: z.stringbool(({truthy: ['1', 'true'], falsy: ['0', 'false']})).meta({title: 'asdasdasd',description: 'Whether this user should receive daily csv report emails', examples: [false]}), }) console.dir(z.toJSONSchema(_userSchema), {depth: 4})
Version: ^4.0.0-beta.20250412T085909
z.string()
z.email()
z.int()
z.number()
z.boolean()
z.bigint()
z.undefined()
z.symbol()
z.null()
z.coerce.string()
z.coerce.number()
z.coerce.boolean()
z.literal()
z.templateLiteral()
z.optional(z.stringbool()).meta({description: 'oke'})
z.optional(z.stringbool().meta({description: 'oke'}))
The text was updated successfully, but these errors were encountered:
bump
Sorry, something went wrong.
seems to work in version v4.0.0-beta.20250430T185432
v4.0.0-beta.20250430T185432
No branches or pull requests
Minimal reproduction:
Version: ^4.0.0-beta.20250412T085909
z.string()
z.email()
z.int()
z.number()
z.boolean()
z.bigint()
z.undefined()
z.symbol()
z.null()
z.coerce.string()
z.coerce.number()
z.coerce.boolean()
z.literal()
z.templateLiteral()
z.stringbool()
z.optional(z.stringbool()).meta({description: 'oke'})
z.optional(z.stringbool().meta({description: 'oke'}))
The text was updated successfully, but these errors were encountered: