Skip to content

Commit 8c57c1f

Browse files
committed
Enable schema validation for the draft compliance tests
1 parent 09f36bf commit 8c57c1f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/Drafts/Draft3Test.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
*/
1717
class Draft3Test extends BaseDraftTestCase
1818
{
19+
protected $schemaSpec = 'http://json-schema.org/draft-03/schema#';
20+
protected $validateSchema = true;
21+
1922
/**
2023
* {@inheritdoc}
2124
*/

tests/Drafts/Draft4Test.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
*/
1515
class Draft4Test extends BaseDraftTestCase
1616
{
17+
protected $schemaSpec = 'http://json-schema.org/draft-04/schema#';
18+
protected $validateSchema = true;
19+
1720
/**
1821
* {@inheritdoc}
1922
*/

0 commit comments

Comments
 (0)