Commit Graph

70 Commits (9c40ac0388f16064399575587c5be69eb9f628df)

Author SHA1 Message Date
Evgeny Poberezkin 0ecd3eaa13 change async/transpile options 2016-01-31 22:07:19 +00:00
Evgeny Poberezkin 86d97d4337 async options, expose Ajv.ValidationError class 2016-01-30 22:13:00 +00:00
Evgeny Poberezkin 6e583554a1 async with nodent transpiler 2016-01-29 09:26:11 +00:00
Evgeny Poberezkin 98c9c195aa references to async schemas 2016-01-27 23:43:28 +00:00
Evgeny Poberezkin 002c99311f use regenerator to transpile asynchronous validation functions if generators are not supported, #40 2016-01-26 23:56:38 +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 0b725bbc31 "default" keyword in "properties" subschemas, #42 2016-01-09 01:07:33 +00:00
Evgeny Poberezkin 2eef59dede minified browser bundle 2015-12-27 21:33:07 +00:00
Evgeny Poberezkin 694e81684f throw exception if custom keyword is not an identifier; update tests as macro keyword definition supports type 2015-12-26 23:04:45 +00:00
Evgeny Poberezkin c4786866e2 simplify compiling macro keywords 2015-12-26 22:27:13 +00:00
Evgeny Poberezkin abff815d38 refactored schema compilation to reduce browser bundle size 2015-12-23 01:50:11 +00:00
Evgeny Poberezkin 1c5be913b6 correctly report schema path, #80 2015-12-19 10:52:39 +00:00
Evgeny Poberezkin 65e534ee8b check/extend errors in inline custom keywords; tests for custom keywords creating errors 2015-11-21 23:12:03 +00:00
Evgeny Poberezkin ee450ec8d0 removed caching of compiled subschemas of custom keywords (it made performance worse in most cases) 2015-11-17 23:20:12 +00:00
Evgeny Poberezkin ae5b4c0f45 support for "inline" custom keywords, #69 2015-11-17 23:20:12 +00:00
Evgeny Poberezkin 87292f80ea validate schemas generated by macro keywords 2015-11-17 23:20:12 +00:00
Evgeny Poberezkin 18c1ef858c support for "macro" custom keywords, #69 2015-11-17 23:20:11 +00:00
Evgeny Poberezkin 285850ce20 pass parent schema to compile/validate functions of custom keywords if they use it, #69 2015-11-17 23:17:59 +00:00
Evgeny Poberezkin 5e45d4eadf support compiling schemas in custom keywords, #69 2015-11-17 23:17:59 +00:00
Evgeny Poberezkin fcc776e794 basic implementation of custom keywords, #69 2015-11-17 23:17:59 +00:00
Evgeny Poberezkin 70844207cf fixed resolution scope change - changing folder in subschema, closes #62 2015-10-25 01:03:19 +01:00
Evgeny Poberezkin cc8de5bb8e tests for inlined schemas, #6 2015-08-23 21:17:11 +01:00
Evgeny Poberezkin 69bc41a38c optimised access to compiled/inlined referenced schemas 2015-08-23 13:27:05 +01:00
Evgeny Poberezkin f3b65f4a58 Merge branch 'master' into inline 2015-08-23 12:04:38 +01:00
Evgeny Poberezkin 843557e03f optimised regexps to create them during compile time, reuse regexp instances 2015-08-22 23:57:16 +01:00
Evgeny Poberezkin d8d59ed352 inline refs with all keywords but "$ref" 2015-08-21 22:52:29 +01:00
Evgeny Poberezkin 7d0c6d1d25 inline simple refs, #6 2015-08-19 22:54:05 +01:00
Evgeny Poberezkin cfec9e3fb3 removed unused it.dataPath, related to #32 2015-08-19 00:31:19 +01:00
Evgeny Poberezkin 982cfab809 removed unused code 2015-08-16 02:11:00 +01:00
Evgeny Poberezkin eeb1307448 jshint "validthis" option 2015-08-11 19:24:31 +01:00
Evgeny Poberezkin 1b8c922ebc preserve roots during ref resolution, closes #27 2015-08-08 19:06:51 +01:00
Evgeny Poberezkin 41ed37f36f resolves recursive schema issue #27, breaks test for issue #13, raml schema has regex issue 2015-08-08 12:21:41 +01:00
Evgeny Poberezkin a0c342c58f fixed resolving recursive references, closes issue #27 2015-08-07 01:54:07 +01:00
Evgeny Poberezkin 1cbcade81f fixed #1 IDs in refs without root id 2015-06-24 01:28:40 +01:00
Evgeny Poberezkin 853ed64bf9 prevent including js-beautify in the browser 2015-06-22 14:40:25 +01:00
Evgeny Poberezkin 4e1f0e54c4 prevent possible issues like #13 2015-06-19 00:59:53 +01:00
Evgeny Poberezkin cbdd00e9c6 fixed #13 - root ref in remote ref 2015-06-19 00:57:19 +01:00
Evgeny Poberezkin 8bfb3f9b4a added anyOf error, refactored test 2015-06-18 23:01:39 +01:00
Evgeny Poberezkin 5f36f17f63 precompiled dot templates, dot is devDependency, closes #3 2015-06-17 14:42:13 +01:00
Evgeny Poberezkin f19f7fdedf refactor $ref.dot 2015-06-16 22:04:17 +01:00
Evgeny Poberezkin 082284d9cc fixed incorrect resolution of root ref in ref, fixes #2 2015-06-16 15:11:33 +01:00
Evgeny Poberezkin 31c7d22c8b fixed bug: subschema with additiona/patternProperties only was ignored as always valid 2015-06-13 23:41:57 +01:00
Evgeny Poberezkin 60b186402f custom formats support 2015-06-13 13:55:23 +01:00
Evgeny Poberezkin 80b04dfc4c optimised generated code for all keywords 2015-06-12 11:43:41 +01:00
Evgeny Poberezkin 606e81ad4b full support of remote refs 2015-06-07 21:55:40 +01:00
Evgeny Poberezkin 6284b83db7 ajv api changed, api tests, "resolve refs" progress 2015-06-07 12:47:57 +01:00
Evgeny Poberezkin fca4c77820 more tests, fixed resolve infinite loop 2015-06-06 19:44:07 +01:00
Evgeny Poberezkin 64b80cbfff more tests, fixed/optimized refs 2015-06-06 16:18:52 +01:00
Evgeny Poberezkin 4db4008e2c optimized code generation, beautify option 2015-06-06 14:13:31 +01:00