playlyfe / themis

A blazing fast JSON Schema v4 validator!
Other
60 stars 7 forks source link

themis breaks in JSCK benchmarks #5

Closed ebdrup closed 9 years ago

ebdrup commented 9 years ago

I tried to do a pull request to add Themis to the JSCK benchmarks: https://github.com/pandastrike/jsck/blob/master/doc/benchmarks.md But Themis breaks with the message:

  themis
TypeError: Cannot read property 'messages' of undefined
  at buildError (/Users/allanebdrup/Dropbox/jsck/node_modules/themis/src/themis.js:608:21)
  at ValidationGenerators.type (/Users/allanebdrup/Dropbox/jsck/node_modules/themis/src/themis.js:692:7)
  at generateSchema (/Users/allanebdrup/Dropbox/jsck/node_modules/themis/src/themis.js:1733:26)
  at buildValidator (/Users/allanebdrup/Dropbox/jsck/node_modules/themis/src/themis.js:1939:24)
  at Object.module.exports.validator (/Users/allanebdrup/Dropbox/jsck/node_modules/themis/src/themis.js:2607:16)
  at module.exports.themis.setup (/Users/allanebdrup/Dropbox/jsck/benchmarks/draft4/validators.coffee:28:25)