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 |