Skip to content

Commit 566938d

Browse files
committed
Testcase for minProperties with properties defined
+ Fix Test
1 parent 9225c96 commit 566938d

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

tests/Constraints/MinMaxPropertiesTest.php

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function getInvalidTests()
7272
return array(
7373
array(
7474
'{
75-
"value": 1
75+
"value": {}
7676
}',
7777
'{
7878
"type": "object",
@@ -81,9 +81,27 @@ public function getInvalidTests()
8181
}
8282
}'
8383
),
84+
array(
85+
'{}',
86+
'{
87+
"type": "object",
88+
"properties": {
89+
"propertyOne": {
90+
"type": "string"
91+
},
92+
"propertyTwo": {
93+
"type": "string"
94+
}
95+
},
96+
"minProperties": 1
97+
}'
98+
),
8499
array(
85100
'{
86-
"value": 1
101+
"value": {
102+
"propertyOne": "valueOne",
103+
"propertyTwo": "valueTwo"
104+
}
87105
}',
88106
'{
89107
"type": "object",

0 commit comments

Comments
 (0)