Closed deepanshu2506 closed 3 years ago
Awesome! Would you please share a simple example? Like how will you get the schema?
Awesome! Would you please share a simple example? Like how will you get the schema?
it would be using schema validation in express-validator and there will be a wrapper middleware around that.
Cool! Please go on 🙏
currently all the input validations and sanitization is being done manually in each controller.
I would like to propose a middleware that takes care of validation and sanitization according to a schema as required by the API.