Skip to content

Commit e2b6161

Browse files
author
Sander Beekhuis
committed
docs: Reorder notes
1 parent a1aeb10 commit e2b6161

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ For general help with json-schema see this excellent [guide](http://spacetelesco
1616

1717
JSON Schema validation is done by [Tiny Validator tv4](https://github.com/geraintluff/tv4).
1818

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+
1923
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.
2024

2125
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.
2226

23-
It seems that tv4 is not actively developed anymore, nor does it support versions of JSON schema after draft-04.
24-
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
25-
[ajv](https://github.com/epoberezkin/ajv) in conjunction with [chai-json-schema-ajv](https://github.com/up9cloud/chai-json-schema-ajv)
2627

2728
## Usage
2829

0 commit comments

Comments
 (0)