express-json-validator-middleware
express-json-validator-middleware copied to clipboard
Express middleware for validating requests against JSON schema
First of all, thank you for providing this middleware. I've been using it across multiple projects. How about letting users pass an Ajv instance to Validator? In my case this...
Currently you must always pass an object if you're using TypeScript.
Related: issue #112
- https://github.com/nodejs/package-maintenance/blob/main/docs/PACKAGE-SUPPORT.md - https://github.com/pkgjs/support Potential `package-support.json`: ```json { "versions": [ { "version": "*", "target": { "node": "supported" }, "response": { "type": "best-effort" }, "backing": { "none": "" } } ]...
Simple example: https://github.com/ajv-validator/ajv/blob/master/.github/workflows/publish.yml
Create a `CONTRIBUTING.md` Inspiration: - https://github.com/rowanmanning/audrey/blob/main/docs/contributing.md - https://www.contributor-covenant.org/ - https://opensource.guide/code-of-conduct/
I found out that ValidationError is extended from the Error instance. If you do this below in TypeScript: ``` javascript const validationError = new ValidationError({ params: [{ dataPath: '.id', keyword:...