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

Commit bab9597

Browse files
authored
Merge pull request #269 from PM-Connect/json-schema-windows
Fix json schema to allow relative schemas on Windows.
2 parents 8f28369 + 47308ba commit bab9597

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)