diff --git a/src/spec/Reference.php b/src/spec/Reference.php index 279fbe9..ce99d9e 100644 --- a/src/spec/Reference.php +++ b/src/spec/Reference.php @@ -338,7 +338,7 @@ private function adjustRelativeReferences($referencedDocument, $basePath, $baseD private function makeRelativePath($base, $path) { if (strpos($path, dirname($base)) === 0) { - return '.' . DIRECTORY_SEPARATOR . substr($path, strlen(dirname($base) . DIRECTORY_SEPARATOR)); + return './' . substr($path, strlen(dirname($base) . '/')); } return $path;