We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e464e8d + 2490d09 commit 5dba843Copy full SHA for 5dba843
benchmarks/draft4/validators.coffee
@@ -39,6 +39,18 @@ module.exports =
39
result
40
41
42
+ "is-my-json-valid":
43
+ setup: (schema) ->
44
+ require("is-my-json-valid")(schema)
45
+ validate: ({validator, schema, document}) ->
46
+ validator(document)
47
+ error: (result) ->
48
+ if result == true
49
+ false
50
+ else
51
+ validator.errors
52
+
53
54
## Disabled because it refuses to accept one of our schemas
55
#"jsonschema":
56
#setup: (schema) ->
package.json
@@ -17,6 +17,7 @@
17
"amanda": "~0.5.1",
18
"coffee-script": "~1.7",
19
"glob": "~3.2.6",
20
+ "is-my-json-valid": "^2.0.2",
21
"jayschema": "~0.3.1",
22
"json-gate": "~0.8.21",
23
"json-schema-tests": "^0.1.1",
0 commit comments