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
I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
Thank you for all of the work you're putting into this project: it's been a pleasure to use.
It would be great if you could add an example of using multipart form-uploads with the the fastify-type-provider-zod to the README. Between fastify/swagger, fastify-type-provider-zod and fastify/multipart, I'm at a bit of a loss on what the Correct Way to play nicely across these three.
Motivation
No response
Example
No response
The text was updated successfully, but these errors were encountered:
Note: In my project I need to verify if the file exists in refine or it throws an error, so is recommended just disable it using hide: true, but if you need it, this could be helpful
z.custom<MultipartFile>().refine((file)=>// Don't verify in refine if the file exists throws an error in Swagger UI!file||(!!file&&file.file.bytesRead<=10*1024*1024),{message: 'The image must be a maximum of 10MB.',},)
Prerequisites
🚀 Feature Proposal
Thank you for all of the work you're putting into this project: it's been a pleasure to use.
It would be great if you could add an example of using multipart form-uploads with the the fastify-type-provider-zod to the README. Between
fastify/swagger
,fastify-type-provider-zod
andfastify/multipart
, I'm at a bit of a loss on what the Correct Way to play nicely across these three.Motivation
No response
Example
No response
The text was updated successfully, but these errors were encountered: