krg7880 / json-schema-generator

Generates draft v4 schema from a local file or a remote JSON url.
MIT License
174 stars 53 forks source link

Fix utils.Array -> utils.isArray #16

Closed rbren closed 8 years ago

rbren commented 8 years ago

currently hitting this:

Uncaught TypeError: utils.Array is not a function
  at AST.generateHash (node_modules/json-schema-generator/lib/ast.js:37:20)
  at AST.isAllSimilarObjects (node_modules/json-schema-generator/lib/ast.js:57:21)
  at AST.buildArrayTree (node_modules/json-schema-generator/lib/ast.js:130:24)

I think this was meant to be isArray. Let me know if I'm wrong.

krg7880 commented 8 years ago

👍🏽