dmitriy-nz / nestjs-form-data

NestJS middleware for handling multipart/form-data, which is primarily used for uploading files.
https://www.npmjs.com/package/nestjs-form-data
MIT License
117 stars 23 forks source link

Validate only a specific key of the body #15

Closed Mateozmaldonado17 closed 2 years ago

Mateozmaldonado17 commented 2 years ago

In several cases (such as the one that is currently happening to me) in the same request I send the files and another series of key: value in the same POST, it happens, I want to be able to tell @FormDataRequest () which is the key to which I want to validate , for example @FormDataRequest ('files') or @FormDataRequest ('test') to validate only that part of the form.