You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Currently, the Zod plugin does not support handling Zod schemas for dates with the coerce option in the schema.zmodel file. This feature would be very useful to simplify date validation when defining Zod schemas.
Request:
I would like to make a request to add the ability to handle Zod schemas for dates with the coerce option in the schema.zmodel file. The idea is to allow users to specify coerce: true when defining a date schema, which would make date validation and conversion easier.
Code Example:
Here is an example of what defining a date schema with the coerce option in the schema.zmodel file could look like:
Impact:
This feature would enhance the flexibility and user-friendliness of the Zod plugin by enabling developers to more easily manage date schemas with a coerce option.