Skip to content
This repository was archived by the owner on Apr 20, 2021. It is now read-only.

Commit 47308ba

Browse files
author
Marcus Speight
committed
Fix json schema to allow relative schemas on Windows.
1 parent 8f28369 commit 47308ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Context/JsonContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function theJsonShouldBeValidAccordingToTheSchema($filename)
323323
$this->getJson(),
324324
new JsonSchema(
325325
file_get_contents($filename),
326-
'file://' . realpath($filename)
326+
'file://' . str_replace(DIRECTORY_SEPARATOR, '/', realpath($filename))
327327
)
328328
);
329329
}

0 commit comments

Comments
 (0)