A common use-case of Zod validation within APIs, for instance, is to check incoming request objects for matching values - typically, password and passwordConfirmation fields for a user signup type endpoint.
Note: The example below also includes a custom error string, which is a feature requested in another issue - here as an example
Feature description
A common use-case of Zod validation within APIs, for instance, is to check incoming request objects for matching values - typically,
password
andpasswordConfirmation
fields for a user signup type endpoint.Input
Output