Commit Graph

75 Commits (ab4f65800bfc2ae9a47e2a939a86dfe661ededfe)

Author SHA1 Message Date
Evgeny Poberezkin 7e0482619d
fix: support control characters in "properties" and "required", closes #226 2016-07-09 23:16:24 +01:00
Evgeny Poberezkin 28711287ff
test: failing test for #226: control chars in schema JSON 2016-07-08 22:11:24 +01:00
Evgeny Poberezkin 79d16b3dee alvays pass parent data and current data property when referenced schema called as a function (previously was passed only with option coerceTypes) 2016-02-12 23:08:28 +00:00
Evgeny Poberezkin 0729d6d19d async schemas and async formats using generators, #40 2016-01-25 06:37:36 +00:00
Evgeny Poberezkin 27bd49f182 renamed opts property of ajv instance to _opts; options object passed to constructor is copied 2016-01-25 06:37:36 +00:00
Evgeny Poberezkin 2eef59dede minified browser bundle 2015-12-27 21:33:07 +00:00
Evgeny Poberezkin a38bf04418 refactor keywords with common code 2015-12-22 17:03:09 +00:00
Evgeny Poberezkin 0fe807b68a v5 keywords constant and contains 2015-11-22 00:31:01 +00:00
Evgeny Poberezkin 79ab4add57 fixed errors for "required", tests 2015-11-20 22:52:54 +00:00
Evgeny Poberezkin a46600e14a default behaviour in >=2.0.0 (#69) reverts #18 and #55 - now dataPath points to the object that is validated and not to the missing property; old (<=1.4.10 ) error reporting of dataPath for "required" keyword is available with option errorDataPath == "property" 2015-11-19 23:59:10 +00:00
Evgeny Poberezkin 982264f192 removed i18n option (params always added to error objects) 2015-11-17 23:45:19 +00:00
Evgeny Poberezkin fcc776e794 basic implementation of custom keywords, #69 2015-11-17 23:17:59 +00:00
Evgeny Poberezkin c4bf67cab0 changed uri format to allow URNs, closes #59 2015-10-25 11:31:07 +00:00
Evgeny Poberezkin 3a38a935c5 test-fast npm script 2015-10-19 22:51:05 +01:00
Evgeny Poberezkin a911fe4424 test for issue #62 2015-10-15 18:39:32 +01:00
Evgeny Poberezkin 80dc982d59 replaced Array functions with for loop, added ajv instances to tests 2015-10-10 20:50:57 +01:00
Evgeny Poberezkin 34993de951 i18n support for ajv-i18n package 2015-09-13 01:01:20 +01:00
Evgeny Poberezkin 73b21e0383 updated require-globify to use "mode:list" 2015-08-27 18:03:24 +01:00
Evgeny Poberezkin d99e707a69 improved performance of "properties" keyword; schema tests for 64 options combinations 2015-08-24 00:40:27 +01:00
Blake Embrey e6da675f91 Support JSON pointers 2015-08-22 11:52:05 -07:00
Evgeny Poberezkin 8abbf63e9b Merge branch 'master' into 1.0.0 2015-08-16 23:00:43 +01:00
Evgeny Poberezkin ef7339cd73 test: additional validator instance {verbose: true, allErrors: false} 2015-08-16 01:39:31 +01:00
Evgeny Poberezkin dfd6de5857 removed _debug option 2015-08-16 00:59:28 +01:00
Evgeny Poberezkin be023eda11 Merge branch 'master' into 1.0.0 2015-07-26 10:37:56 +01:00
Evgeny Poberezkin 3d3a350ea7 excluded ajv from test bundles into a separate bundle 2015-07-24 22:55:19 +01:00
Evgeny Poberezkin 6b9bc9e464 tests are browser compatible, karma tests with sauceLabs, readme on using in browser, #21 2015-07-24 10:39:23 +01:00
Evgeny Poberezkin 5641185396 adding schemas without compiling them, support for recursive schemas, adding dependencies in any order, #5 2015-07-04 00:48:32 +01:00
Evgeny Poberezkin 1cbcade81f fixed #1 IDs in refs without root id 2015-06-24 01:28:40 +01:00
Evgeny Poberezkin 2368b95d56 refactored json-schema-test into separate npm module 2015-06-19 11:39:48 +01:00
Evgeny Poberezkin 05a151619b re-renable test with allErrors option 2015-06-19 11:01:32 +01:00
Evgeny Poberezkin 8bfb3f9b4a added anyOf error, refactored test 2015-06-18 23:01:39 +01:00
Evgeny Poberezkin 46812e0ac6 fixed #14: remote ref in definitions in remote ref with ids 2015-06-18 20:48:35 +01:00
Evgeny Poberezkin 220ee7892d test for #14 2015-06-18 17:15:50 +01:00
Evgeny Poberezkin 123aa99b15 test for #13 2015-06-18 15:01:15 +01:00
Evgeny Poberezkin 2ae8c89708 allow uri and throw on error when validating schemas against meta-schema 2015-06-17 22:06:07 +01:00
Evgeny Poberezkin 5b434b426e validate schema against meta-schema 2015-06-17 02:05:52 +01:00
Evgeny Poberezkin 4d155759c9 load tests from JSON-Schema-Test-Suite in travis 2015-06-16 23:03:02 +01:00
Evgeny Poberezkin 08c8032fe1 include property in error.dataPath for additionalProperty, closes #11 2015-06-16 22:54:08 +01:00
Evgeny Poberezkin f19f7fdedf refactor $ref.dot 2015-06-16 22:04:17 +01:00
Evgeny Poberezkin e0d6afe7dc evgeny, jason: fixed incorrect root replacing and failure to resolve ref to another file root from inside ref, closes #12 2015-06-16 17:10:27 +01:00
Evgeny Poberezkin 082284d9cc fixed incorrect resolution of root ref in ref, fixes #2 2015-06-16 15:11:33 +01:00
Eugene Poberezkin b986292e53 test for issue #1 2015-06-15 01:34:44 +01:00
Evgeny Poberezkin 9dfa073e28 optimized generated code for simple schemas 2015-06-14 09:04:11 +01:00
Evgeny Poberezkin e3a692f602 optimized additionalProperties validation 2015-06-13 16:35:15 +01:00
Evgeny Poberezkin 0b3806fd18 do not create errors array until the first error 2015-06-13 13:01:05 +01:00
Evgeny Poberezkin 32e83e5f28 exclude schemas without validation keywords, dont create data variables unless they are used at least twice 2015-06-12 22:12:34 +01:00
Evgeny Poberezkin 0aaa78eca4 optimize generated code to skip following rule groups if validation had already failed 2015-06-12 18:16:54 +01:00
Evgeny Poberezkin 5c7f764c6d fixed validation bug with recursive schemas 2015-06-12 14:22:33 +01:00
Evgeny Poberezkin ea974ab48d fast mode for format validation; optimised code generated for enum rule 2015-06-10 21:51:14 +01:00
Evgeny Poberezkin 606e81ad4b full support of remote refs 2015-06-07 21:55:40 +01:00