Skip to content

Commit 020d57c

Browse files
author
Greg Bowler
committed
tweak: import class
1 parent b3823b7 commit 020d57c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Schema/Validator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use Gt\Json\JsonKvpObject;
55
use Gt\Json\JsonObject;
66
use Gt\Json\JsonPrimitive\JsonPrimitive;
7+
use JsonSchema\Validator as JsonSchemaValidator;
78

89
class Validator {
910
public function __construct(
@@ -12,7 +13,7 @@ public function __construct(
1213

1314
public function validate(JsonObject $json):ValidationResult {
1415
if($this->schema) {
15-
$validator = new \JsonSchema\Validator();
16+
$validator = new JsonSchemaValidator();
1617
$object = $json instanceof JsonPrimitive
1718
? $json->getPrimitiveValue()
1819
: $json->asObject();

0 commit comments

Comments
 (0)