Evgeny Poberezkin
|
081f061371
|
more tests for switch keyword
|
2015-12-12 19:43:38 +00:00 |
Evgeny Poberezkin
|
b5e3e7da6e
|
ignore coverage for code branches where error objects are not crerated
|
2015-12-12 18:27:57 +00:00 |
Evgeny Poberezkin
|
8114a2b442
|
tests for switch keyword
|
2015-12-12 18:14:53 +00:00 |
Evgeny Poberezkin
|
318af74629
|
switch keyword
|
2015-12-12 13:41:51 +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
|
7141f1375e
|
cleanup formatMaximum/formatMinimum
|
2015-12-06 21:25:42 +00:00 |
Evgeny Poberezkin
|
1c16707ee5
|
readme
|
2015-12-06 20:34:46 +00:00 |
Evgeny Poberezkin
|
faae5585c2
|
semicolon
|
2015-12-05 21:31:56 +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
|
5ebfb41903
|
fixed missing schemaPath in type keyword
|
2015-11-29 00:44:25 +00:00 |
Evgeny Poberezkin
|
8a0719ea27
|
additionalItems added to reserved keywords (can be defined as custom)
|
2015-11-28 16:11:56 +00:00 |
Evgeny Poberezkin
|
7d96e1b642
|
patternGroups keyword (v5 proposals)
|
2015-11-28 14:59:08 +00:00 |
Evgeny Poberezkin
|
cf35958df4
|
schemaPath in errors, #76
|
2015-11-27 09:19:04 +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
|
06fd23217a
|
removed peerDependency, closes #78
|
2015-11-24 06:35:50 +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
|
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
|
982264f192
|
removed i18n option (params always added to error objects)
|
2015-11-17 23:45:19 +00:00 |
Evgeny Poberezkin
|
6a2961bcf3
|
updated error parameters so that ajv-i18n does not depend on schema, compatible with ajv-i18n >= 1.0.0
|
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
|
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
|
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
|
7b142c56bd
|
optimized generated code for deep schemas
|
2015-10-25 21:55:07 +00:00 |
Evgeny Poberezkin
|
889fcc12c5
|
fixed email format regex
|
2015-10-25 18:50:50 +00:00 |
Evgeny Poberezkin
|
c4bf67cab0
|
changed uri format to allow URNs, closes #59
|
2015-10-25 11:31:07 +00:00 |
Evgeny Poberezkin
|
d1ff86ef5e
|
refactor resolve
|
2015-10-25 01:49:07 +01: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
|
579e5c5a1d
|
refactor, remove unused code, test
|
2015-10-16 19:37:43 +01:00 |
Evgeny Poberezkin
|
40eafe036f
|
removed unused code
|
2015-10-15 21:41:50 +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 |
Le Lan Johan
|
c486e8f25b
|
Do not force two slashes for uris
To allow relative urls (conformed to https://tools.ietf.org/html/rfc1808), URI regex do not force two slashes after scheme.
|
2015-10-14 09:52:28 +02:00 |
Evgeny Poberezkin
|
e02972207c
|
validate "required" properties within "properties" keyword, closes #41
|
2015-10-11 00:08:58 +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 |