Commit Graph

41 Commits (master)

Author SHA1 Message Date
Evgeny Poberezkin db56b51fff fix: error messages for exclusiveMaximum/Minimum wint $data, closes #722 2018-03-03 13:41:50 +00:00
Jürg Lehni 4a12ca3b92 Fix additionalProperties error with errorDataPath 2018-01-24 23:38:14 +01:00
Evgeny Poberezkin dad7132adf test: fix browser tests, replace id with $id 2017-12-02 19:35:57 +00:00
Evgeny Poberezkin 05e2b38d67 fix: "default" should work inside "then" and "else", closes #635 2017-11-24 22:33:28 +00:00
Evgeny Poberezkin a68e9a7535 feat: improve oneOf error reporting, #573 2017-10-29 20:51:08 +00:00
Evgeny Poberezkin 5e17f9b4ee feat: faster uniqueItems when items are scalars of the same type, closes #608 2017-10-29 18:20:24 +00:00
Evgeny Poberezkin b4561767ff feat: if/then/else keyword, closes #586 2017-10-28 20:46:53 +01:00
Evgeny Poberezkin 52e944b9fa fix: incorrect error reporting for exclusiveMaximum/Minimum, closes #506 2017-05-28 17:21:34 +01:00
Evgeny Poberezkin 022a825362 test: additional tests to verify number of errors when type is used 2017-05-20 21:44:17 +01:00
Evgeny Poberezkin 3c86da4f1b fix: improve error reporting from oneOf keyword, closes #427 2017-02-25 21:16:55 +00:00
Evgeny Poberezkin 82775ee8de feat: draft6 propertyName keyword (standard, inline) 2016-12-23 23:45:48 +00:00
Evgeny Poberezkin ab488a4f57 feat: option $data instead of v5, use draft-6 meta schema, support constant and contains keywords by default, #372 2016-12-21 21:11:59 +00:00
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