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
|
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
|
d3d31d285a
|
Merge branch 'master' into v4.0
|
2016-04-10 20:03:03 +01:00 |
Evgeny Poberezkin
|
8676a3f62e
|
meteor compatibility; closes #159
|
2016-04-10 11:44:22 +01:00 |
Evgeny Poberezkin
|
404bff5bcf
|
error parameters for formatMaximum/formatMinimum, #151
|
2016-03-26 22:35:46 +00:00 |
Evgeny Poberezkin
|
e6a22be556
|
fix type coercion for multiple items/properties; closes #152
|
2016-03-25 20:13:39 +00:00 |
Evgeny Poberezkin
|
cbd9467bd6
|
useDefaults: use literals (deep-clone) of defaults unless useDefaults: "shared" is passed, #151, #136
|
2016-03-24 23:27:13 +00: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
|
6a587c8729
|
restore readme in dotjs folder
|
2016-03-15 08:43:54 +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 |
Brian Stack
|
bf76acfc21
|
Make cloning optional and based on stringify
|
2016-03-03 11:23:49 -08:00 |
Brian Stack
|
82f283fe7e
|
Clone default values to do least surprising thing
|
2016-03-02 16:04:21 -08:00 |
Evgeny Poberezkin
|
f4ca190010
|
fixed browser tests for async validation
|
2016-03-02 07:09:11 +00:00 |
Evgeny Poberezkin
|
53a6c70138
|
asynchronous custom keywords can define custom errors by returning the promise that rejects with Ajv.ValidationError, closes #118
|
2016-02-28 22:14:18 +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
|
f48efb564a
|
optimised "not" keyword in {allErrors: true} mode to fail on the first error in subschema, closes #131
|
2016-02-27 23:01:03 +00:00 |
Evgeny Poberezkin
|
ec0f1c1b22
|
patternRequired keyword (v5 proposal), closes #123
|
2016-02-27 22:36:11 +00:00 |
Evgeny Poberezkin
|
503b427b7f
|
eslint no-trailing spaces
|
2016-02-26 20:25:15 +00:00 |
Evgeny Poberezkin
|
bdd1748dec
|
schema: false option in "validate" custom keyword definition for custom keywords that do not depend on the schema
|
2016-02-21 13:27:38 +00:00 |
Evgeny Poberezkin
|
8fa4d0f05f
|
test for passContext option
|
2016-02-16 10:12:32 +00:00 |
Evgeny Poberezkin
|
de65510f1e
|
passContext option; pass parent data to custom keyword functions
|
2016-02-16 00:15:20 +00:00 |
Evgeny Poberezkin
|
14d0eb0645
|
fix inlineRefs option, fix test, fix $ref to pass parentData[Property] to the referenced schema if it was passed to validate function
|
2016-02-15 22:04:04 +00:00 |
Evgeny Poberezkin
|
b2a67e7a65
|
options passContext (undocumented) to pass the context of validation function to referenced (not inlined) schemas
|
2016-02-14 20:34:10 +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
|
79d16b3dee
|
alvays pass parent data and current data property when referenced schema called as a function (previously was passed only with option coerceTypes)
|
2016-02-12 23:08:28 +00:00 |
Evgeny Poberezkin
|
fa6b702db0
|
error message for enum keyword, closes #115
|
2016-02-07 20:03:14 +00:00 |
Evgeny Poberezkin
|
c62c6452aa
|
eslint: no-console
|
2016-02-04 22:36:12 +00:00 |
Evgeny Poberezkin
|
5c8e32dffc
|
eslint: no-shadow, no-invalid-this
|
2016-02-04 22:24:59 +00:00 |
Evgeny Poberezkin
|
5db986276c
|
fixed bug: custom sync keyword in async schema
|
2016-02-04 19:56:04 +00:00 |
Evgeny Poberezkin
|
2f6213111d
|
validate method for asynchronous schema always returns promise
|
2016-02-02 23:42:07 +00:00 |
Evgeny Poberezkin
|
cc32c46a25
|
update json-stable-stringify; closes #67
|
2016-02-02 21:39:45 +00:00 |
Evgeny Poberezkin
|
89a5ce76f9
|
eslint; code style
|
2016-02-02 18:55:02 +00:00 |
Evgeny Poberezkin
|
644a73b8f7
|
enable tests for nodent
|
2016-02-01 17:56:47 +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
|
c19c02aa04
|
nodent usage
|
2016-01-29 23:29:45 +00:00 |
Evgeny Poberezkin
|
2fe6715e3c
|
readme: async and transpile options
|
2016-01-29 18:01:03 +00:00 |
Evgeny Poberezkin
|
dba7096f2b
|
additional check for compatibility with nodent
|
2016-01-29 15:11:13 +00:00 |
Evgeny Poberezkin
|
6e583554a1
|
async with nodent transpiler
|
2016-01-29 09:26:11 +00:00 |
Evgeny Poberezkin
|
7365dd6e41
|
transpiling async validation functions from es7 with nodent
|
2016-01-28 12:31:20 +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
|
873426b6a7
|
async custom keywords, #40
|
2016-01-25 23:57:16 +00:00 |
Evgeny Poberezkin
|
d5808a3ee4
|
async format when format is $data, #40
|
2016-01-25 22:05:15 +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 |