Commit Graph

75 Commits (57e09aab22cae93edf440976849887f91fa8fd1c)

Author SHA1 Message Date
Evgeny Poberezkin 95c40a55d4 fix: v5 with "schemas" option when schemas dont have $schema keyword (or use v5 metaschema), closes #204 2016-06-01 07:01:46 +01:00
Evgeny Poberezkin 44dd6b78b9 Android 4 compatibility, #143 2016-04-18 21:15:38 +01:00
Evgeny Poberezkin 8020465d74 Merge branch 'master' into v4.0 2016-04-15 22:20:40 +01:00
Evgeny Poberezkin d730049184 meteor compatibility: error reporting, closes #159 2016-04-11 20:40:31 +01:00
Evgeny Poberezkin 84e8782605 rename property "async" of asynchronous validation function to "$async" for meteor compatibility, #151, #159 2016-04-10 20:17:06 +01:00
Evgeny Poberezkin 69d897f31a fix errorsTexts 2016-03-23 23:25:54 +00:00
Evgeny Poberezkin dc10816fc3 refactor using options ignored for meta schemas 2016-03-20 18:12:14 +00:00
Evgeny Poberezkin ce86641657 pass default meta-schema via "meta" option, closes #90 2016-03-14 20:56:07 +00:00
Evgeny Poberezkin 192d73f74e use meta schema from options as default meta-schema 2016-03-14 00:16:38 +00:00
Evgeny Poberezkin f068d73693 add meta schema from option meta, #90 2016-03-13 23:15:37 +00:00
Evgeny Poberezkin e1a38d2d90 accept array of schemas in addMetaSchema method 2016-03-09 23:20:35 +00:00
Evgeny Poberezkin 3aaeaf6ec0 removeSchema with RegExp to remove multiple schemas or without argument to remove all schemas, closes #103 2016-02-28 01:16:48 +00:00
Evgeny Poberezkin a0a172c90a removeSchema called with id without matching schema does not throw error 2016-02-13 20:14:04 +00:00
Evgeny Poberezkin 5c8e32dffc eslint: no-shadow, no-invalid-this 2016-02-04 22:24:59 +00:00
Evgeny Poberezkin 2f6213111d validate method for asynchronous schema always returns promise 2016-02-02 23:42:07 +00:00
Evgeny Poberezkin 89a5ce76f9 eslint; code style 2016-02-02 18:55:02 +00:00
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 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 b5b6a06f09 coerceTypes option, #95 2016-01-17 01:05:06 +00:00
Evgeny Poberezkin c99d6751ad option addUsedSchema 2016-01-15 06:54:53 +00:00
Evgeny Poberezkin 0b725bbc31 "default" keyword in "properties" subschemas, #42 2016-01-09 01:07:33 +00:00
Evgeny Poberezkin c4786866e2 simplify compiling macro keywords 2015-12-26 22:27:13 +00:00
Evgeny Poberezkin eab087a792 loopRequired option 2015-12-26 00:05:39 +00:00
Evgeny Poberezkin 723258f052 v5 meta-schema 2015-12-12 21:18:41 +00:00
Evgeny Poberezkin cffb7c7f72 move compileAsync and addKeyword to Ajv prototype, remove reduce 2015-11-22 02:13:03 +00:00
Evgeny Poberezkin a6de2b8047 addKeyword to separate file, whitespace 2015-11-22 02:07:41 +00:00
Evgeny Poberezkin 6ab3337ddf compileAsync to separate file 2015-11-22 01:47:15 +00:00
Evgeny Poberezkin 0fe807b68a v5 keywords constant and contains 2015-11-22 00:31:01 +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 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 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 579e5c5a1d refactor, remove unused code, test 2015-10-16 19:37:43 +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 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 de3d3469fe fixed #51 (compileAsync); ensure that callback in compileAsync is always called asynchronously 2015-09-23 21:04:34 +01:00
Evgeny Poberezkin f23deffff3 update text returned by errorsText method 2015-09-22 22:47:54 +01:00
Evgeny Poberezkin fe097794a9 asynchronous schema compilation with loading missing remote schemas using supplied function, #43, mulesoft-labs/osprey-mock-service#11 2015-09-03 00:17:50 +01:00
Evgeny Poberezkin 7f37f1b546 removed hyper meta-schema, same schema is used as latest meta-schema 2015-08-21 23:11:18 +01:00
Blake Embrey 4989662947 Add latest meta schemas according to schema spec 2015-08-21 10:14:36 -07:00
Evgeny Poberezkin 8abbf63e9b Merge branch 'master' into 1.0.0 2015-08-16 23:00:43 +01:00
Evgeny Poberezkin 87cc09501b tests: options, format regex 2015-08-12 01:00:46 +01:00
Evgeny Poberezkin 1a1353717b .jshintrc, code style 2015-08-11 19:06:32 +01:00
Evgeny Poberezkin dfa640a1b2 readme, fixed addMetaSchema 2015-08-09 12:49:05 +01:00
Evgeny Poberezkin 22d4c6e40d addSchema no longer returns compiled schema 2015-08-09 11:46:44 +01:00