Commit Graph

135 Commits (1dc0f81330e0a42f2362611b2a9a3f99b50fc4e9)

Author SHA1 Message Date
Evgeny Poberezkin 610dcd17eb replace $ in properties with $$ replace pattern, closes #87 2015-12-07 21:55:38 +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 8a0719ea27 additionalItems added to reserved keywords (can be defined as custom) 2015-11-28 16:11:56 +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 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 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 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 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 738e343ccf fixed reference resolution when multiple schema files are compiled, closes #50, closes #53 2015-10-02 22:06:00 +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 6723287c3e optimized equal 2015-09-07 09:58:33 +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 ed7c14801d jshint, closes #34 2015-08-27 20:55:44 +01:00
Evgeny Poberezkin cc8de5bb8e tests for inlined schemas, #6 2015-08-23 21:17:11 +01:00
Evgeny Poberezkin 69bc41a38c optimised access to compiled/inlined referenced schemas 2015-08-23 13:27:05 +01:00
Evgeny Poberezkin f3b65f4a58 Merge branch 'master' into inline 2015-08-23 12:04:38 +01:00
Evgeny Poberezkin 843557e03f optimised regexps to create them during compile time, reuse regexp instances 2015-08-22 23:57:16 +01:00
Evgeny Poberezkin 4c4fdd5afc optimised getExprPath for numbers (items keyword), #32 2015-08-22 21:21:18 +01:00
Blake Embrey e6da675f91 Support JSON pointers 2015-08-22 11:52:05 -07:00
Evgeny Poberezkin d8d59ed352 inline refs with all keywords but "$ref" 2015-08-21 22:52:29 +01:00
Evgeny Poberezkin 7d0c6d1d25 inline simple refs, #6 2015-08-19 22:54:05 +01:00
Evgeny Poberezkin cfec9e3fb3 removed unused it.dataPath, related to #32 2015-08-19 00:31:19 +01:00
Evgeny Poberezkin 8abbf63e9b Merge branch 'master' into 1.0.0 2015-08-16 23:00:43 +01:00
Evgeny Poberezkin 982cfab809 removed unused code 2015-08-16 02:11:00 +01:00
Evgeny Poberezkin fe53458a6e missingRefs option tests 2015-08-15 23:59:14 +01:00
Evgeny Poberezkin c4fb165f8d simplified util.toHash 2015-08-11 22:52:34 +01:00
Evgeny Poberezkin eeb1307448 jshint "validthis" option 2015-08-11 19:24:31 +01:00
Evgeny Poberezkin a3be10e40d .jshintrc: node, allow == 2015-08-11 19:13:08 +01:00
Evgeny Poberezkin 0012b09ccf do not replace schema object with compiled function 2015-08-09 00:54:06 +01:00
Evgeny Poberezkin c175259b48 clean up resolve 2015-08-08 20:57:50 +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 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 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
Evgeny Poberezkin be023eda11 Merge branch 'master' into 1.0.0 2015-07-26 10:37:56 +01:00
Evgeny Poberezkin 6c93d0346d fixed "required" with properties that are not identifiers, closes #20 2015-07-22 16:26:28 +01:00