Skip to content

Commit 0bcf3eb

Browse files
committed
Subschema should be dereferenced prior to applying the default value
Note that siblings of $ref are ignored, per the spec.
1 parent 7d7f43a commit 0bcf3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Constraints/DefaultPropertiesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function getValidTests()
121121
),
122122
array(// #15 infinite recursion via $ref (object)
123123
'{}',
124-
'{"properties":{"propertyOne": {"$ref": "#","default": {}}}}',
124+
'{"properties":{"propertyOne": {"$ref": "#","default": "valueOne"}}, "default": {}}',
125125
'{"propertyOne":{}}'
126126
),
127127
array(// #16 infinite recursion via $ref (array)

0 commit comments

Comments
 (0)