diff --git a/src/spec/Reference.php b/src/spec/Reference.php index 9fff04bd..510e61ac 100644 --- a/src/spec/Reference.php +++ b/src/spec/Reference.php @@ -298,7 +298,7 @@ private function adjustRelativeReferences($referencedDocument, $basePath, $baseD } foreach ($referencedDocument as $key => $value) { - if ($key === '$ref' && is_string($value)) { + if (($key === '$ref' || $key === 'externalValue') && is_string($value)) { if (isset($value[0]) && $value[0] === '#') { // direcly inline references in the same document, // these are not going to be valid in the new context anymore