jsen
jsen copied to clipboard
JSON-Schema validator built for speed
As per https://nvd.nist.gov/vuln/detail/CVE-2020-7777 This affects all versions of package jsen. If an attacker can control the schema file, it could run arbitrary JavaScript code on the victim machine. In the...
### Issue Validation always fails when an empty enum validation is included inside of a oneOf validation. Empty enum's are allowed in the spec (http://json-schema.org/latest/json-schema-validation.html#rfc.section.6.23), even though they are discouraged....
- Create a custom build script that will combine source files in `lib/` - Remove dependency to `url` module
Currently jsen validation against `oneOf` or `anyOf` schema reports quite unreadable errors, suppose we have test code like: ```js let jsen = require('jsen'); let schema = { oneOf: [ {...
Please look at my fork https://github.com/pashoo2/jsen and add my code into the yours, if you'll like it. I've not understood how to create a pull request
Provide a mechanism to collect data from javascript objects based on the `source` keyword in the schema. Use case: collect request data from various request sources (path, query, body, etc.)...