Skip to content

Commit 4cdf05e

Browse files
committed
refactor: Remove inserting draft version as validator can handle missing draft when in strict mode
1 parent 4490b03 commit 4cdf05e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/JsonSchemaTestSuiteTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ function ($file) {
8585
foreach ($files as $file) {
8686
$contents = json_decode(file_get_contents($file->getPathname()), false);
8787
foreach ($contents as $testCase) {
88-
// Since draft6 can only be validated using the strict check mode we need to ensure the $schema
89-
// property is set in the test schema
90-
if ($baseDraftName === 'draft6' && is_object($testCase->schema)) {
91-
$testCase->schema->{'$schema'} = DraftIdentifiers::DRAFT_6;
92-
}
9388
foreach ($testCase->tests as $test) {
9489
$name = sprintf(
9590
'[%s/%s%s]: %s: %s is expected to be %s',

0 commit comments

Comments
 (0)