Marks a request optional: when its key has no value, it receives None,
and otherwise Some of the value, which schema checks. Any Standard
Schema validator can be made optional.
It is not itself a schema, so it is written only as a request's own type,
never inside listOf or objectOf, where Zod's .optional()
marks a property that may be missing.
Marks a request optional: when its key has no value, it receives
None, and otherwiseSomeof the value, whichschemachecks. Any Standard Schema validator can be made optional.It is not itself a schema, so it is written only as a request's own type, never inside listOf or objectOf, where Zod's
.optional()marks a property that may be missing.