From 1da862247edd43730e9f40168f520e34452d8dd6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 12 Dec 2016 21:33:00 +0100 Subject: [PATCH] fix #341 validate-json command (#342) --- bin/validate-json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/validate-json b/bin/validate-json index 8184e7bc..e9c18095 100755 --- a/bin/validate-json +++ b/bin/validate-json @@ -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;