[Bug]: zod-form-data sets fields as optional, while the docs state otherwise, in the type that is #323
Closed
1 of 4 tasks
Labels
bug
Something isn't working
Which packages are impacted?
remix-validated-form
@remix-validated-form/with-zod
@remix-validated-form/with-yup
zod-form-data
What version of these packages are you using?
zod-form-data
:2.0.1
Please provide a link to a minimal reproduction of the issue.
Sorry, private repo
Steps to Reproduce the Bug or Issue
The following:
Gives an error on the function, stating that the properties are required by the function, but are optional from the
parse
result, while the docs state that by default all things are required, so the type should also reflect this.Expected behavior
The type reflecting if a property is required or optional correctly according to the schema.
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: