jsen icon indicating copy to clipboard operation
jsen copied to clipboard

JSON-Schema validator built for speed

Results 7 jsen issues
Sort by recently updated
recently updated
newest added

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

enhancement

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: [ {...

enhancement

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

question
research

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.)...

enhancement