Skip to content

Commit 8d7af76

Browse files
committed
Don't resolve a schema id against itself
1 parent 0a6210e commit 8d7af76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchema/SchemaStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private function expandRefs(&$schema, $base = null)
9292
return;
9393
}
9494

95-
if (property_exists($schema, 'id') && is_string($schema->id)) {
95+
if (property_exists($schema, 'id') && is_string($schema->id) && $base != $schema->id) {
9696
$base = $this->uriResolver->resolve($schema->id, $base);
9797
}
9898

0 commit comments

Comments
 (0)