-
-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema.FormData
literal to work with 3rd party libs that expose only it
#3986
Comments
These exist under the Also, text is just Schema.transformLiterals(["on", true], ["", false]).pipe(
Schema.optionalWith({ default: () => false }),
); File exists, only thing that is missing is |
Yes, there is indeed an api, but as I understand it, there is no complete FormData check - only in pieces (file, json, ...)? |
I made a request for this function because there are api's - over which I have no power. For example |
It seems that the lib is taking a very heavy-handed approach to schema integration, taking inspiration from @gcanti Besides the |
Schema.FormData
literal to work with 3rd party libs that expose only it
You're talking about scenarios where the user might not |
Thats not good logic, taking to its natural conclusion there should be no ecosystem packages because users might not use them but would want to use something they have. It doesn't track. It might go into |
What is the problem this feature would solve?
FormData validation
What is the feature you are proposing to solve the problem?
Use schemas to validate formData
What alternatives have you considered?
https://www.npmjs.com/package/zod-form-data
The text was updated successfully, but these errors were encountered: