tv4
tv4 copied to clipboard
Tiny Validator for JSON Schema v4
I think that defaut value in schema isn't working...
Hello, I'm wondering if support for javascript types of primitive values have been considered? For example, consider: ``` js tv4.validate("hello", {type:"string"}); // true ``` But ``` js tv4.validate(new String("hello"), {type:"string"});...
Use case: I need to store parts of JSON documents in a cache as I parse them. I was looking for a callback like onEachField(). The original question: http://stackoverflow.com/questions/23336704/json-schema-parser-validator-with-callbacks
I have a lot of nested schemas, which differs slightly. It would be nice to have a function to clone a base tv4 instance where schemas has been added, to...
Trying to validate the json meta schema fails (using grunt-tv4): ``` fail: json-v4.json !== http://json-schema.org/draft-04/schema# Unknown property (not in schema) /definitions/schemaArray/items/$ref -> value: string -> "#" -> schema: [object Object]...
If a document is found, but the fragment is not, then this should be displayed somewhere in the result (e.g. `missingFragments`)
I have strange problems when debugging in Webstorm and tv4 is loaded in node; The problems are that a breakpoint is hit inside tv4, although no breakpoints are defined. I...
Hi, I try to validate a JSON that contains an email, so in my schema I've specified a property with email format, but I always get `true` even if there...
If a schema has an empty require array then it is not valid. The draft-4 schema defines require as: "required": { "$ref": "#/definitions/stringArray" }, "stringArray": { "items": { "type": "string"...
Regarding https://groups.google.com/forum/#!searchin/json-schema/tv4/json-schema/M-lpFqUJ3ok/hpXhPodk7MUJ Should you be returning true if the thing passed in as the schema is not even JSON