Skip to content

Commit

Permalink
Testcase for minProperties with properties defined (jsonrainbow#416)
Browse files Browse the repository at this point in the history
+ Fix Test
  • Loading branch information
flolivaud authored and bighappyface committed Apr 12, 2017
1 parent 992e1c3 commit af48180
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions tests/Constraints/MinMaxPropertiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getInvalidTests()
return array(
array(
'{
"value": 1
"value": {}
}',
'{
"type": "object",
Expand All @@ -83,9 +83,27 @@ public function getInvalidTests()
}
}'
),
array(
'{}',
'{
"type": "object",
"properties": {
"propertyOne": {
"type": "string"
},
"propertyTwo": {
"type": "string"
}
},
"minProperties": 1
}'
),
array(
'{
"value": 1
"value": {
"propertyOne": "valueOne",
"propertyTwo": "valueTwo"
}
}',
'{
"type": "object",
Expand Down

0 comments on commit af48180

Please sign in to comment.