tv4 icon indicating copy to clipboard operation
tv4 copied to clipboard

Tiny Validator for JSON Schema v4

Results 102 tv4 issues
Sort by recently updated
recently updated
newest added

I wrote the following test in the "02 - anyOf.js" test file: ``` it("anyOf success with validateMultiple 2", function() { var data = { "type1": "string" }; var schema =...

The object provided to `addSchema` is being changed inside tv4 (I guess this line is responsible for that: https://github.com/geraintluff/tv4/blob/b9cf8fa27978c5a643bd7aea044cad03b476fac9/tv4.js#L492). The side effect is pretty unexpected; and can cause issues in...

Context: https://github.com/epoberezkin/ajv/issues/44. Additional context: There are a lot of different JSON schema validators in the wild, especially for JavaScript. I found the messages from `tv4` and pulled them into a...

I recently created an npm module for tv4, [tv4-via-typenames](https://www.npmjs.com/package/tv4-via-typenames), which is built with TypeScript. Previously Bart van der Schoor had created a great TypeScript declaration file for tv4, but I...

I don't mean this necessarily as a bug, but I have an object structure in immutable vs plain objects. I'd like to just be able to do validate(thatThing), instead of...

Hello, bower.json has a couple of the properties issues 1. "license:" key instead of "license", note ":" 2. .bower.json template has "homepage" key, but not bower.json Thanks for the great...

For the following data / schema / code: ``` js var data = { expected: 5, unexpected: 'foo' }; var schema = { type: 'object', properties: { expected: {} },...

I have a schema which includes ``` "content-inline": { "properties": { "content": { } }, "required": [ "content" ], "type": "object" }, ``` The intention is that the content attribute...

The sanitize method should take a schema and an input json. It should then output a version of the input that corresponds to the schema or throw an error if...

Hi! Is it possible to have a mode where the validation can actively apply the default values of the schema to the properties of the validated object? This would be...