Obvious/falkor — pull request #4 by skuwamoto (2012-10-23 04:34:51+00:00)
Title: Allow JSON schema validation to use references to multiple files

Hello dan,

Please review the following commits I made in branch 'sho-multiple-json'.

I accidentally pushed this to master and then reverted the change.

Changes:

1) Allows you to addJsonSchema(file). This is important because...
2) validateJson(file) can only use a $ref if that $ref comes from
another file, and...
3) Since that was being added, I added a validateJsonById() to
validate against one of the schema that was added in (1).

Finally,

4) It turns out that the chromium library expects the "pattern"
field to be a JavaScript RegExp, but that obviously won't happen
just by doing a JSON.parse() of a text file, so I added some
code to create a regexp from the value found in the file.

ae46f4b2e61c9c51d221f71155f7f9d7372b6ed9 (2012-10-22 21:31:07 -0700)
update version #

107b04bc0363faf883ad1f8002e22b2c47c0e290 (2012-10-22 21:29:37 -0700)
Allow JSON schema validation to use references to multiple files

R=dan