Skip to content

Commit 63da0ec

Browse files
author
Andy Raines
committed
Make sure to set the id property too
1 parent ba902a2 commit 63da0ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/JsonSchema/RefResolver.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ public function resolve($schema, $sourceUri = null)
121121
return;
122122
}
123123

124+
// Fill in id property
125+
if ($sourceUri) {
126+
$schema->id = $sourceUri;
127+
}
128+
124129
// First determine our resolution scope
125130
$scope = $this->getResolutionScope($schema, $sourceUri);
126131

0 commit comments

Comments
 (0)