Evgeny Poberezkin
32ddef850f
Merge pull request #55 from marbemac/master
...
remove redundant property in required error message
2015-09-28 06:58:56 +01:00
Marc MacLeod
975dee4d1d
update tests to reflect change to required message
2015-09-26 12:24:54 -05:00
Marc MacLeod
71e8ff3f2c
update the required message rather than dataPath
2015-09-26 12:11:20 -05:00
Marc MacLeod
f024918133
remove redundant property val in error message
...
For required properties, the error message is currently:
"data.name should have required property .name"
This works for other validations, where the property is present, but required is a special case that indicates the property is not there. The above message is somewhat confusing. I've simply updated the required errors to read:
"data should have required property .name"
2015-09-25 15:18:17 -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
9903881a8f
function names for compiled templates to simplify debugging
2015-09-22 23:17:00 +01:00
Evgeny Poberezkin
f23deffff3
update text returned by errorsText method
2015-09-22 22:47:54 +01:00
Evgeny Poberezkin
34993de951
i18n support for ajv-i18n package
2015-09-13 01:01:20 +01:00
Evgeny Poberezkin
6723287c3e
optimized equal
2015-09-07 09:58:33 +01:00
Evgeny Poberezkin
f542604051
Merge pull request #46 from YChebotaev/master
...
Equal fail when order of keys is different
2015-09-07 09:52:21 +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
ed7c14801d
jshint, closes #34
2015-08-27 20:55:44 +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
44e1af15f1
Merge pull request #39 from epoberezkin/inline
...
Inline referenced schemas without refs in them, #6
2015-08-23 21:33:21 +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
6d37952a8a
1.1.1
2015-08-23 11:43:11 +01:00
Evgeny Poberezkin
e8274faa66
Merge pull request #37 from blakeembrey/package-files
...
Add a files array to `package.json`
2015-08-23 11:39:29 +01:00
Blake Embrey
9eb38e4859
Add a files array to `package.json`
...
Ensures that only and all of the `lib/` directory will be in the release.
2015-08-22 22:15:56 -07: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
14c6426a55
1.1.0
2015-08-22 22:21:48 +01:00
Evgeny Poberezkin
1c508fa98c
removed compiled dot templates from the repo, #34
2015-08-22 22:17:07 +01:00
Evgeny Poberezkin
f9017a54d3
dataPath using jsonPointers in "required" keyword when allErrors == false, #32
2015-08-22 21:58:38 +01:00
Evgeny Poberezkin
4c4fdd5afc
optimised getExprPath for numbers (items keyword), #32
2015-08-22 21:21:18 +01:00
Evgeny Poberezkin
00419a120e
Merge pull request #36 from blakeembrey/json-pointers
...
Support JSON pointers
2015-08-22 20:23:55 +01:00
Blake Embrey
e6da675f91
Support JSON pointers
2015-08-22 11:52:05 -07:00
Evgeny Poberezkin
5c15acc419
removed "build" from npm test
2015-08-21 23:38:33 +01:00
Evgeny Poberezkin
0fdc461ae9
1.0.1
2015-08-21 23:14:57 +01:00
Evgeny Poberezkin
7f37f1b546
removed hyper meta-schema, same schema is used as latest meta-schema
2015-08-21 23:11:18 +01:00
Evgeny Poberezkin
d8d59ed352
inline refs with all keywords but "$ref"
2015-08-21 22:52:29 +01:00
Evgeny Poberezkin
171a87b352
Merge pull request #35 from blakeembrey/repo-structure
...
Use `npm scripts` for a dev cleaner workflow
2015-08-21 19:44:35 +01:00
Blake Embrey
21a3cd472e
Use `npm scripts` for a dev cleaner workflow
2015-08-21 11:36:42 -07:00
Evgeny Poberezkin
e6e1ce0a79
Merge pull request #33 from blakeembrey/latest-schema-v4
...
Latest schema v4
2015-08-21 19:30:46 +01:00
Blake Embrey
4989662947
Add latest meta schemas according to schema spec
2015-08-21 10:14:36 -07:00
Blake Embrey
80e39d6978
Add `npm run build` to npm scripts
2015-08-21 10:14:09 -07:00
Blake Embrey
208f85bbed
Fix README typo: explicitely -> explicitly
2015-08-21 10:13:30 -07: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
e74f79eea6
removed unused code with _debug option
2015-08-19 00:22:05 +01:00
Evgeny Poberezkin
f37eb7a1da
test for unicode option
2015-08-18 21:51:16 +01:00
Evgeny Poberezkin
0a71f0244d
removed changes history from readme
2015-08-18 21:36:11 +01:00