Skip to content

Commit

Permalink
fix #341 validate-json command (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored and bighappyface committed Dec 12, 2016
1 parent 3e9f6fb commit 1da8622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/validate-json
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ try {
echo $e->getMessage() . "\n";
exit(2);
}
$refResolver = new JsonSchema\RefResolver($retriever, $resolver);
$schema = $refResolver->resolve($urlSchema);
$refResolver = new JsonSchema\SchemaStorage($retriever, $resolver);
$schema = $refResolver->resolveRef($urlSchema);

if (isset($arOptions['--dump-schema'])) {
$options = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0;
Expand Down

0 comments on commit 1da8622

Please sign in to comment.