Skip to content

Commit

Permalink
Removing the use of classes that are no longer part of json-schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
fmizzell committed Sep 25, 2018
1 parent b4d2c34 commit 87de610
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 87de610

Please sign in to comment.