You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,15 @@ For general help with json-schema see this excellent [guide](http://spacetelesco
16
16
17
17
JSON Schema validation is done by [Tiny Validator tv4](https://github.com/geraintluff/tv4).
18
18
19
+
It seems that tv4 is not actively developed anymore, nor does it support versions of JSON schema after draft-04.
20
+
However this chai plugin will use tv4 as its backend for the forseeable future. If you want newer versions of the JSON-schema or more performance you could look at using
21
+
[ajv](https://github.com/epoberezkin/ajv) in conjunction with [chai-json-schema-ajv](https://github.com/up9cloud/chai-json-schema-ajv)
22
+
19
23
The assertion will fail if a schema use a `$ref` to a schema that is not added before the assertion is called. Use `chai.tv4.addSchema(uri, schema)` to preset schemas.
20
24
21
25
JSON Schema's main use-case is validating JSON documents and API responses, but it is also a powerful way to describe and validate *any* JavaScript value or object.
22
26
27
+
23
28
## Usage
24
29
25
30
@@ -216,7 +221,7 @@ before(function (done) {
216
221
````
217
222
218
223
## History
219
-
See [Releases](https://github.com/chaijs/chai-json-schema/releases).
224
+
See [Releases](https://github.com/chaijs/chai-json-schema/releases).
0 commit comments