Skip to main content

Variable: booleanPropSchema

const booleanPropSchema: ZodUnion<readonly [ZodBoolean, ZodCodec<ZodString, ZodBoolean>]>

Accepts either a boolean or a stringbool (e.g. "true"/"false", "1"/"0") for use in params and query schemas. Use consistently so callers can pass either from query strings or programmatically.