test readme change
parent
a892d0e485
commit
c415f0397a
|
@ -59,14 +59,14 @@ It uses [doT templates](https://github.com/olado/doT) to generate super-fast val
|
|||
- NEW: [v5 $data reference](#data-reference) to use values from the validated data as values for the schema keywords
|
||||
- NEW: [asynchronous validation](#asynchronous-validation) of custom formats and keywords
|
||||
|
||||
Currently ajv is the only validator that passes all the tests from [JSON Schema Test Suite](https://github.com/json-schema/JSON-Schema-Test-Suite) (according to [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark), apart from the test that requires that `1.0` is not an integer that is impossible to satisfy in JavaScript).
|
||||
Currently Ajv is the only validator that passes all the tests from [JSON Schema Test Suite](https://github.com/json-schema/JSON-Schema-Test-Suite) (according to [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark), apart from the test that requires that `1.0` is not an integer that is impossible to satisfy in JavaScript).
|
||||
|
||||
|
||||
## Performance
|
||||
|
||||
ajv generates code to turn JSON schemas into javascript functions that are efficient for v8 optimization.
|
||||
Ajv generates code to turn JSON schemas into javascript functions that are efficient for v8 optimization.
|
||||
|
||||
Currently ajv is the fastest validator according to these benchmarks:
|
||||
Currently Ajv is the fastest validator according to these benchmarks:
|
||||
|
||||
- [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark) - 70% faster than the second place
|
||||
- [jsck benchmark](https://github.com/pandastrike/jsck#benchmarks) - 20-190% faster
|
||||
|
@ -117,7 +117,7 @@ if (!valid) console.log(ajv.errorsText());
|
|||
|
||||
See [API](#api) and [Options](#options) for more details.
|
||||
|
||||
ajv compiles schemas to functions and caches them in all cases (using schema stringified with [json-stable-stringify](https://github.com/substack/json-stable-stringify) as a key), so that the next time the same schema is used (not necessarily the same object instance) it won't be compiled again.
|
||||
Ajv compiles schemas to functions and caches them in all cases (using schema stringified with [json-stable-stringify](https://github.com/substack/json-stable-stringify) as a key), so that the next time the same schema is used (not necessarily the same object instance) it won't be compiled again.
|
||||
|
||||
The best performance is achieved when using compiled functions returned by `compile` or `getSchema` methods (there is no additional function call).
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
set -e
|
||||
|
||||
if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then
|
||||
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '\.md$|^LICENSE$' && {
|
||||
|
|
Loading…
Reference in New Issue