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
|
a951e66e51
|
readme: asynchronous validation; no co in the test with es7 async functions
|
2016-01-29 12:45:59 +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
|
cf978706d1
|
Merge branch 'master' into async
|
2016-01-26 21:44:09 +00:00 |
Evgeny Poberezkin
|
8b8ab4b086
|
fixed browser tests with the new brfs version
|
2016-01-26 13:18:50 +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 |
Evgeny Poberezkin
|
0c60364a7f
|
coerce type when schema is in ref that is not inlined, #95
|
2016-01-17 14:08:50 +00:00 |
Evgeny Poberezkin
|
878f3559f6
|
do not try to coerce to object/array, #95
|
2016-01-17 13:12:28 +00:00 |
Evgeny Poberezkin
|
b5b6a06f09
|
coerceTypes option, #95
|
2016-01-17 01:05:06 +00:00 |
Evgeny Poberezkin
|
5b7d9f9ff7
|
fixed inline reference resolution
|
2016-01-16 14:33:46 +00:00 |
Evgeny Poberezkin
|
c99d6751ad
|
option addUsedSchema
|
2016-01-15 06:54:53 +00:00 |
Evgeny Poberezkin
|
8c4557f1ac
|
fixed relative json-pointer pattern/code to access data
|
2016-01-14 21:31:00 +00:00 |
Evgeny Poberezkin
|
37dd0415da
|
fixed relative JSON-pointer pattern
|
2016-01-13 22:23:32 +00:00 |
Evgeny Poberezkin
|
8fe96db455
|
refactored "default" to correctly validate minProperties, minItems, etc. when defaults are present, closes #42
|
2016-01-09 13:28:40 +00:00 |
Evgeny Poberezkin
|
94a8f9abb3
|
useDefaults readme
|
2016-01-09 11:37:21 +00:00 |
Evgeny Poberezkin
|
d7dd660d25
|
"default" keyword in "items" subschemas, #42
|
2016-01-09 01:37:45 +00:00 |
Evgeny Poberezkin
|
0b725bbc31
|
"default" keyword in "properties" subschemas, #42
|
2016-01-09 01:07:33 +00:00 |
Evgeny Poberezkin
|
5f2cc30449
|
option multipleOfPrecision, closes #84
|
2016-01-02 17:16:01 +00:00 |
Evgeny Poberezkin
|
c3d09d7699
|
fixed bug in dependencies keyword, closes #94
|
2015-12-30 23:04:14 +00:00 |
Evgeny Poberezkin
|
81d8a2ee6f
|
fixed the test that was failing in IE9
|
2015-12-27 22:42:02 +00:00 |
Evgeny Poberezkin
|
2eef59dede
|
minified browser bundle
|
2015-12-27 21:33:07 +00:00 |
Evgeny Poberezkin
|
694e81684f
|
throw exception if custom keyword is not an identifier; update tests as macro keyword definition supports type
|
2015-12-26 23:04:45 +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
|
1d9cad5ab7
|
$data ref equal to undefined is always valid
|
2015-12-25 20:10:15 +00:00 |
Evgeny Poberezkin
|
2d7b06a6db
|
support $data ref in required keyword, #81
|
2015-12-25 00:30:50 +00:00 |
Evgeny Poberezkin
|
2ab6aba454
|
support $data ref in uniqueItems, #81
|
2015-12-24 18:58:15 +00:00 |
Evgeny Poberezkin
|
10c6685027
|
support $data ref in formatMaximum/Minimum and exclusiveFormatMaximum/Minimum, #81
|
2015-12-24 17:43:48 +00:00 |
Evgeny Poberezkin
|
abff815d38
|
refactored schema compilation to reduce browser bundle size
|
2015-12-23 01:50:11 +00:00 |
Evgeny Poberezkin
|
a38bf04418
|
refactor keywords with common code
|
2015-12-22 17:03:09 +00:00 |
Evgeny Poberezkin
|
cdf172c2b8
|
support $data ref in constant keyword, #81; constant keyword is implemented as inline, closes #91
|
2015-12-22 11:47:12 +00:00 |
Evgeny Poberezkin
|
8648a98047
|
support $data ref in format keyword, #81
|
2015-12-22 01:18:52 +00:00 |
Evgeny Poberezkin
|
ae4e6009a1
|
support $data ref in maximum/minimum and exclusiveMaximum/Minimum keywords, #81
|
2015-12-21 15:37:12 +00:00 |
Evgeny Poberezkin
|
4bb4059e80
|
$data ref in pattern and enum keywords, #81
|
2015-12-21 00:39:09 +00:00 |
Evgeny Poberezkin
|
aa18f7cab1
|
support $data ref in max/minLength, max/minItems and max/minProperties keywords, #81
|
2015-12-20 22:40:19 +00:00 |
Evgeny Poberezkin
|
9d4be9c72a
|
$data ref in multipleOf keyword, #81
|
2015-12-20 20:48:15 +00:00 |
Evgeny Poberezkin
|
bed46b41aa
|
relative-json-pointer format
|
2015-12-19 21:58:45 +00:00 |
Evgeny Poberezkin
|
984a70d36c
|
json-pointer format
|
2015-12-19 21:23:40 +00:00 |
Evgeny Poberezkin
|
35214f3c68
|
uuid format
|
2015-12-19 20:03:41 +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
|
723258f052
|
v5 meta-schema
|
2015-12-12 21:18:41 +00:00 |
Evgeny Poberezkin
|
081f061371
|
more tests for switch keyword
|
2015-12-12 19:43:38 +00:00 |
Evgeny Poberezkin
|
8114a2b442
|
tests for switch keyword
|
2015-12-12 18:14:53 +00:00 |
Evgeny Poberezkin
|
7c7abbbc74
|
"parentSchema" property added to error objects when using "verbose" option
|
2015-12-11 21:35:14 +00:00 |
Evgeny Poberezkin
|
610dcd17eb
|
replace $ in properties with $$ replace pattern, closes #87
|
2015-12-07 21:55:38 +00:00 |
Evgeny Poberezkin
|
5dac3dd4b3
|
"contains" keyword (v5) is now valid if data is not an array
|
2015-12-06 21:57:41 +00:00 |
Evgeny Poberezkin
|
d7fd8229a9
|
time format; formatMaximum/formatMinimum and exclusiveFormatMaximum/exclusiveFormatMinimum keywords from v5 proposals
|
2015-12-05 21:16:28 +00:00 |
Evgeny Poberezkin
|
7d96e1b642
|
patternGroups keyword (v5 proposals)
|
2015-11-28 14:59:08 +00:00 |
Evgeny Poberezkin
|
2ddf957554
|
fixed schema substitution with some options when refs are inlined, closes #77
|
2015-11-26 22:49:49 +00:00 |
Evgeny Poberezkin
|
0fe807b68a
|
v5 keywords constant and contains
|
2015-11-22 00:31:01 +00:00 |
Evgeny Poberezkin
|
65e534ee8b
|
check/extend errors in inline custom keywords; tests for custom keywords creating errors
|
2015-11-21 23:12:03 +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 |
Evgeny Poberezkin
|
771e79f36b
|
readme: validation errors, inline custom keywords
|
2015-11-18 21:34:50 +00:00 |
Evgeny Poberezkin
|
982264f192
|
removed i18n option (params always added to error objects)
|
2015-11-17 23:45:19 +00:00 |
Evgeny Poberezkin
|
41f313a798
|
refactor custom keywords tests
|
2015-11-17 23:20:12 +00:00 |
Evgeny Poberezkin
|
ee450ec8d0
|
removed caching of compiled subschemas of custom keywords (it made performance worse in most cases)
|
2015-11-17 23:20:12 +00:00 |
Evgeny Poberezkin
|
ae5b4c0f45
|
support for "inline" custom keywords, #69
|
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
|
285850ce20
|
pass parent schema to compile/validate functions of custom keywords if they use it, #69
|
2015-11-17 23:17:59 +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
|
368332ab42
|
fixed bug in remote ref resolution, closes #70
|
2015-11-07 13:53:41 +00:00 |
Evgeny Poberezkin
|
73f48e676d
|
failing tests for swagger api schema and schema with "local hash ref with remote hash ref that has inner hash ref", #70
|
2015-11-05 22:19:26 +00:00 |
Evgeny Poberezkin
|
7b142c56bd
|
optimized generated code for deep schemas
|
2015-10-25 21:55:07 +00:00 |
Evgeny Poberezkin
|
fb292c815d
|
test from cosmicrealms benchmark
|
2015-10-25 18:55:38 +00:00 |
Evgeny Poberezkin
|
c4bf67cab0
|
changed uri format to allow URNs, closes #59
|
2015-10-25 11:31:07 +00:00 |
Evgeny Poberezkin
|
70844207cf
|
fixed resolution scope change - changing folder in subschema, closes #62
|
2015-10-25 01:03:19 +01:00 |
Evgeny Poberezkin
|
b161a6f1d0
|
fixed resolution scope change - changing folder, fixed test for #62
|
2015-10-24 23:16:37 +01:00 |
Evgeny Poberezkin
|
2259dc76cd
|
find schema ref that changes resolution scope in another schema, fixed one test for #62
|
2015-10-24 22:25:08 +01:00 |
Evgeny Poberezkin
|
946ada0229
|
additional test for resolution scope change, issue #62
|
2015-10-19 22:53:11 +01:00 |
Evgeny Poberezkin
|
3a38a935c5
|
test-fast npm script
|
2015-10-19 22:51:05 +01:00 |
Evgeny Poberezkin
|
579e5c5a1d
|
refactor, remove unused code, test
|
2015-10-16 19:37:43 +01:00 |
Evgeny Poberezkin
|
777c05bb10
|
more tests for oneOf and items
|
2015-10-15 23:20:33 +01:00 |
Evgeny Poberezkin
|
cf136dc3f1
|
async test
|
2015-10-15 22:45:40 +01:00 |
Evgeny Poberezkin
|
40eafe036f
|
removed unused code
|
2015-10-15 21:41:50 +01:00 |
Evgeny Poberezkin
|
845c7245ca
|
fixed tests for IE9 and FF4
|
2015-10-15 21:10:37 +01:00 |
Evgeny Poberezkin
|
50d30a262a
|
fixed incorrect resolution scope change when "id" property is not a schema id - closes #61, closes #63
|
2015-10-15 18:53:55 +01:00 |
Evgeny Poberezkin
|
a911fe4424
|
test for issue #62
|
2015-10-15 18:39:32 +01:00 |
Evgeny Poberezkin
|
588e4a951e
|
test for issue #63
|
2015-10-15 18:39:32 +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
|
738e343ccf
|
fixed reference resolution when multiple schema files are compiled, closes #50, closes #53
|
2015-10-02 22:06:00 +01: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
|
de3d3469fe
|
fixed #51 (compileAsync); ensure that callback in compileAsync is always called asynchronously
|
2015-09-23 21:04:34 +01:00 |
Evgeny Poberezkin
|
3e1c488d7d
|
fixed karma test
|
2015-09-23 11:22:37 +01:00 |
Evgeny Poberezkin
|
36c338d41e
|
test for issue #50
|
2015-09-23 10:20:51 +01:00 |
Evgeny Poberezkin
|
34993de951
|
i18n support for ajv-i18n package
|
2015-09-13 01:01:20 +01:00 |
Yury Chebotaev
|
de02d4d8ab
|
Compare objects with better approach by @blakeembrey that not count order of keys
|
2015-09-07 03:45:10 +05:00 |
Yury Chebotaev
|
1b0a471448
|
equal fail when order of keys is different
|
2015-09-07 02:58:01 +05: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
|
bec34c5ba5
|
error thrown in case of missing reference has properties missingRef and missingSchema, related to #43, mulesoft-labs/osprey-mock-service#11
|
2015-09-02 18:20:43 +01:00 |
Evgeny Poberezkin
|
73b21e0383
|
updated require-globify to use "mode:list"
|
2015-08-27 18:03:24 +01:00 |
Evgeny Poberezkin
|
d99e707a69
|
improved performance of "properties" keyword; schema tests for 64 options combinations
|
2015-08-24 00:40:27 +01:00 |
Evgeny Poberezkin
|
cc8de5bb8e
|
tests for inlined schemas, #6
|
2015-08-23 21:17:11 +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 |
Blake Embrey
|
4989662947
|
Add latest meta schemas according to schema spec
|
2015-08-21 10:14:36 -07:00 |
Evgeny Poberezkin
|
f37eb7a1da
|
test for unicode option
|
2015-08-18 21:51:16 +01:00 |
Evgeny Poberezkin
|
8abbf63e9b
|
Merge branch 'master' into 1.0.0
|
2015-08-16 23:00:43 +01:00 |
Evgeny Poberezkin
|
a657070dd4
|
typo in test case
|
2015-08-16 22:46:15 +01:00 |
Evgeny Poberezkin
|
d758ff7e75
|
failed id resolutions test
|
2015-08-16 01:59:43 +01:00 |
Evgeny Poberezkin
|
ef7339cd73
|
test: additional validator instance {verbose: true, allErrors: false}
|
2015-08-16 01:39:31 +01:00 |
Evgeny Poberezkin
|
8a4c6cdacb
|
test for uniqueItems option
|
2015-08-16 01:30:51 +01:00 |
Evgeny Poberezkin
|
247181c08f
|
test: anyOf with one of schemas empty
|
2015-08-16 01:25:37 +01:00 |
Evgeny Poberezkin
|
dfd6de5857
|
removed _debug option
|
2015-08-16 00:59:28 +01:00 |
Evgeny Poberezkin
|
fe53458a6e
|
missingRefs option tests
|
2015-08-15 23:59:14 +01:00 |
Evgeny Poberezkin
|
87cc09501b
|
tests: options, format regex
|
2015-08-12 01:00:46 +01:00 |
Evgeny Poberezkin
|
3367c262ee
|
tests for special cases of type keyword
|
2015-08-11 22:49:47 +01:00 |
Evgeny Poberezkin
|
d1e824f78b
|
addFormat test
|
2015-08-11 22:20:58 +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
|
1b8c922ebc
|
preserve roots during ref resolution, closes #27
|
2015-08-08 19:06:51 +01:00 |
Evgeny Poberezkin
|
b3fb2e58c7
|
fixed regexps in raml schema, issue #27
|
2015-08-08 18:37:33 +01:00 |
Evgeny Poberezkin
|
41ed37f36f
|
resolves recursive schema issue #27, breaks test for issue #13, raml schema has regex issue
|
2015-08-08 12:21:41 +01:00 |
Evgeny Poberezkin
|
f57b3b96bd
|
failing test for recursive RAML schema, issue #27
|
2015-08-08 12:17:32 +01:00 |
Evgeny Poberezkin
|
22513f598a
|
Merge branch 'master' into 1.0.0
|
2015-08-07 23:17:06 +01:00 |
Evgeny Poberezkin
|
a0c342c58f
|
fixed resolving recursive references, closes issue #27
|
2015-08-07 01:54:07 +01:00 |
Blake Embrey
|
02d6a5431d
|
Escape schema strings in output
|
2015-08-06 14:29:45 -07: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
|
36085debf5
|
indentations
|
2015-07-30 09:06:31 +01:00 |
Evgeny Poberezkin
|
f88f1e20da
|
skipped test
|
2015-07-30 09:05:07 +01:00 |
Andy Scott
|
65ccf49edf
|
Add test for `removeAdditional` when using a schema to validate additional properties.
|
2015-07-29 14:28:57 -07:00 |
Andy Scott
|
94ddac2bc9
|
Add test for options (just `removeAdditional`, for now)
|
2015-07-29 09:56:11 -07:00 |
Evgeny Poberezkin
|
be023eda11
|
Merge branch 'master' into 1.0.0
|
2015-07-26 10:37:56 +01: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
|
6c93d0346d
|
fixed "required" with properties that are not identifiers, closes #20
|
2015-07-22 16:26:28 +01:00 |
Evgeny Poberezkin
|
70d37337d2
|
test for #20
|
2015-07-22 14:58:48 +01:00 |
Evgeny Poberezkin
|
4d705a7c85
|
readme
|
2015-07-21 23:23:37 +01:00 |
Evgeny Poberezkin
|
3e733e697e
|
test with invalid data for #19
|
2015-07-20 17:49:49 +01:00 |
Evgeny Poberezkin
|
af46a38428
|
fixed required for inner level with many properties, closes #19
|
2015-07-20 17:41:06 +01:00 |
Evgeny Poberezkin
|
8a5d8f32b7
|
fixed losing errors when validating mutually recursive schemas, #5
|
2015-07-04 01:37:35 +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 |