Commit Graph

128 Commits (c89ca0e980c4f0291db37d2e7dfc5d5330eaa19c)

Author SHA1 Message Date
Evgeny Poberezkin 09879d21ad
Revert "feat: meta schema for custom keywords schemas, closes #230"
This reverts commit 1a6e4b576c.
2016-07-18 18:51:57 +01:00
Evgeny Poberezkin 1a6e4b576c
feat: meta schema for custom keywords schemas, closes #230 2016-07-17 11:20:47 +01:00
Evgeny Poberezkin 2bcb74fc8c
fix: support mutual recursive refs when both refs are schema fragments, closes #210 2016-07-10 18:36:09 +01:00
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
Evgeny Poberezkin 0012b09ccf do not replace schema object with compiled function 2015-08-09 00:54:06 +01:00
Evgeny Poberezkin 234729121f Merge branch 'master' into 1.0.0 2015-08-08 19:39:27 +01:00
Evgeny Poberezkin ab32638acc addMetaSchema validates metaschema by default 2015-08-08 19:34:01 +01:00
Evgeny Poberezkin 9466859f92 addMetaSchema method, closes #26 2015-08-08 10:56:19 +01:00
Evgeny Poberezkin 021b20a366 fixed removeAdditional/validateSchema 2015-07-31 21:00:44 +01:00
Evgeny Poberezkin 94f51e1248 Merge branch 'master' into 1.0.0 2015-07-31 20:06:43 +01:00
Evgeny Poberezkin 62adbbe1ed fixed removeAdditional, tests, added "failing" for removeAdditional; closes #25, related to #23 2015-07-31 19:23:35 +01:00
Evgeny Poberezkin 9b1361c92e readme, removed unused code 2015-07-04 01:58:08 +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 e7b0ee76e2 do not create global (instance level) refs for IDs that start from # 2015-06-24 00:55:38 +01:00
Evgeny Poberezkin a97e6740e7 removeSchema method, closes #8 2015-06-20 18:41:56 +01:00
Evgeny Poberezkin b16989f779 cache option to change the way the schemas are cached, issue #8 2015-06-20 15:37:29 +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 0576ea986e removed unused code 2015-06-16 22:19:26 +01:00
Evgeny Poberezkin 60b186402f custom formats support 2015-06-13 13:55:23 +01:00
Evgeny Poberezkin 1cd5eb5c72 make errors available after validate method call 2015-06-08 08:03:33 +01:00
Evgeny Poberezkin 6284b83db7 ajv api changed, api tests, "resolve refs" progress 2015-06-07 12:47:57 +01:00
Evgeny Poberezkin 1a597d1e2d removed wrapper function from generated code 2015-05-30 19:11:06 +01:00
Evgeny Poberezkin 1c2444f4d7 $ref with internal refs 2015-05-30 11:50:18 +01:00
Evgeny Poberezkin 884fcfb511 inline simple rules 2015-05-30 09:53:04 +01:00
Evgeny Poberezkin 5de2ee7513 fix 2015-05-30 00:30:20 +01:00
Evgeny Poberezkin 3b928b83a6 no caching of compiled schemas 2015-05-30 00:28:20 +01:00
Evgeny Poberezkin daf592adc4 ajv 2015-05-29 23:32:47 +01:00