Commit Graph

29 Commits (42d640779a6ae1c47e0a2da07ba49797ceb055db)

Author SHA1 Message Date
Evgeny Poberezkin b853218249
style: eslint tests, closes #250 2016-07-28 00:50:30 +01:00
Evgeny Poberezkin 6a14e347c4 use new with Ajv constructor in tests and examples 2016-06-04 21:16:11 +01:00
Evgeny Poberezkin b92e6e86a7 property dependencies in allErrors mode create error for each missing dependency; #151, closes 73 2016-04-15 22:10:30 +01: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 eab087a792 loopRequired option 2015-12-26 00:05:39 +00:00
Evgeny Poberezkin 9d4be9c72a $data ref in multipleOf keyword, #81 2015-12-20 20:48:15 +00:00
Evgeny Poberezkin ca80b2ec42 correct schemaPath for $refs, additionalProperties, additionalItems, etc. 2015-12-19 15:56:08 +00:00
Evgeny Poberezkin 1c5be913b6 correctly report schema path, #80 2015-12-19 10:52:39 +00:00
Evgeny Poberezkin 56a8b5b582 "dependencies" with option errorDataPath = "property" sets dataPath to missing property, error params has missingProperty, #68, #69 2015-11-21 12:43:44 +00:00
Evgeny Poberezkin 5c0c8b3b1c default behaviour of "additionalProperties" in >=2.0.0 (#69) reverts #11 - now dataPath points to the object that is validated and not to the additional property; old (<=1.4.10 ) error reporting of dataPath for "additionalProperties" keyword is available with option errorDataPath == "property" 2015-11-21 01:45:52 +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
Marc MacLeod 975dee4d1d update tests to reflect change to required message 2015-09-26 12:24:54 -05:00
Evgeny Poberezkin a67b661e10 fixed #52 (compileAsync); loadSchema should be called only once for any schema; error is always passed via callback 2015-09-23 23:42:33 +01:00
Evgeny Poberezkin d6ed06766c fixed #48 - indices in dataPath in error messages for items keyword 2015-09-23 21:58:19 +01:00
Evgeny Poberezkin 34993de951 i18n support for ajv-i18n package 2015-09-13 01:01:20 +01:00
Evgeny Poberezkin f9017a54d3 dataPath using jsonPointers in "required" keyword when allErrors == false, #32 2015-08-22 21:58:38 +01:00
Blake Embrey e6da675f91 Support JSON pointers 2015-08-22 11:52:05 -07: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 5416eaf86d improved error messages for "required" keyword, closes #18 2015-07-01 00:30:57 +01:00
Evgeny Poberezkin 5fc0b18287 improved error reporting for "required" keyword with large size schema, #18 2015-06-30 22:26:00 +01:00
Evgeny Poberezkin fd61168a2e failing error reporting test for "required" keyword with large schema, #18 2015-06-30 22:10:54 +01:00
Evgeny Poberezkin 22cdf02e51 improved error reporting for "required" keyword with limited size schema, #18 2015-06-30 22:09:14 +01:00
Evgeny Poberezkin 0138e5f1a1 added failing test for error reporting for "required" keyword, #18 2015-06-30 20:48:37 +01:00
Evgeny Poberezkin 72f5ed5e9d samle code removing additional properties in the test 2015-06-16 23:31:30 +01:00
Evgeny Poberezkin 08c8032fe1 include property in error.dataPath for additionalProperty, closes #11 2015-06-16 22:54:08 +01:00
Evgeny Poberezkin 536d958cf1 fixed incorrect dataPath in errors for refs, closes #9 2015-06-16 00:21:14 +01:00