Skip to content

Commit

Permalink
Merge pull request #64 from sbeekhuis/feature/maintenance
Browse files Browse the repository at this point in the history
Feature/maintenance
  • Loading branch information
Edward Smit authored May 13, 2019
2 parents 82939b7 + a53c93e commit 9328e57
Show file tree
Hide file tree
Showing 5 changed files with 4,022 additions and 12 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: node_js
node_js:
- 6 # to be removed 2019-04-01
- 8 # to be removed 2019-12-31
- 9 # to be removed 2018-06-30
- 8 # LTS to be removed 2019-12-31
- 10 # LTS to be removed 2021-04-30
- 11 # to be removed 2019-06-01
- 12 # future LTS to be removed 2022-04-30
- lts/* # safety net; don't remove
- node # safety net; don't remove
deploy:
Expand Down
3 changes: 0 additions & 3 deletions MAINTAINERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
bsander
edwardsmit
JrSchild
keithamus
roelandvanbatenburg
thabemmz
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ For general help with json-schema see this excellent [guide](http://spacetelesco

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

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

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.

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.


## Usage


Expand Down Expand Up @@ -216,7 +221,7 @@ before(function (done) {
````

## History
See [Releases](https://github.com/chaijs/chai-json-schema/releases).
See [Releases](https://github.com/chaijs/chai-json-schema/releases).

## Build

Expand Down
Loading

0 comments on commit 9328e57

Please sign in to comment.