Custom Zod boolean coercion that properly handles the string "false" Unlike z.coerce.boolean(), this function treats "false" string as false Shows up as a simple boolean in OpenAPI schema while accepting strings during parsing
Custom Zod boolean coercion that properly handles the string "false" Unlike z.coerce.boolean(), this function treats "false" string as false Shows up as a simple boolean in OpenAPI schema while accepting strings during parsing