Skip to content

Commit

Permalink
Merge branch 'update-json-schema-lib' into 7.x-2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
fmizzell committed Sep 25, 2018
2 parents 5da4581 + 87de610 commit 61e1d2d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/OdsmValidator.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

use JsonSchema\Uri\UriRetriever;
use JsonSchema\RefResolver;
use JsonSchema\Validator;

/**
Expand Down Expand Up @@ -110,13 +108,8 @@ private function getDatasets() {
private function validateDataset($dataset) {
$id = $this->getDatasetId($dataset);

$retriever = new UriRetriever();

$schema_info = $this->getSchemaInfo();

RefResolver::$maxDepth = 10;
$ref_resolver = new RefResolver($retriever);
$ref_resolver->resolve($schema_info->schema, 'file://' . $schema_info->schema_folder . '/');
$validator = new Validator();
$validator->check($dataset, $schema_info->schema);

Expand Down

0 comments on commit 61e1d2d

Please sign in to comment.