dbartholomae / middy-middleware-class-validator

A middy validation middleware using class-validator.
MIT License
13 stars 5 forks source link

Add options to pass validation options #30

Closed arjupba closed 2 months ago

arjupba commented 4 months ago

It may be required to pass validation options like {whitelist: true}, in some scenario.

Would you be willing to help with a PR?

It can be fixed by adding extra parameters.

dbartholomae commented 4 months ago

Sure, maybe as bodyOptions and queryOptions?

arjupba commented 4 months ago

@dbartholomae yes, that works for me.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.