Returns a partial version of a Zod object schema, making all fields optional. Supports both Zod v3 and v4.
The type of the Zod object schema.
The Zod object schema instance (either v3 or v4).
The partial Zod object schema.
If the schema is not a Zod v3 or v4 object.
Returns a partial version of a Zod object schema, making all fields optional. Supports both Zod v3 and v4.