no-impossible-zod-literal-bounds
Disallow same-chain literal Zod bounds whose accepted set is mathematically empty.
Why
A schema with contradictory literal bounds rejects every input, turning validation into an unreachable contract that usually reflects a typo.
Fix
Choose compatible lower and upper bounds, or remove the constraint that does not express the intended domain.
Examples
import { z } from "zod";const S = z.number().min(5).max(4);import { z } from "zod";const S = z.number().gte(3).lte(3);