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

Commit

Permalink
Fix json schema to allow relative schemas on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Speight committed Jan 15, 2019
1 parent 8f28369 commit 47308ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Context/JsonContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function theJsonShouldBeValidAccordingToTheSchema($filename)
$this->getJson(),
new JsonSchema(
file_get_contents($filename),
'file://' . realpath($filename)
'file://' . str_replace(DIRECTORY_SEPARATOR, '/', realpath($filename))
)
);
}
Expand Down

0 comments on commit 47308ba

Please sign in to comment.