Skip to content

Commit

Permalink
Add test case for invalid string type validation
Browse files Browse the repository at this point in the history
  • Loading branch information
snapshotpl authored and DannyvdSluijs committed May 27, 2024
1 parent 62565da commit fb52ae3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Constraints/ArraysTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,19 @@ public function getInvalidTests()
}
}
}'
),
array(
'{"data": [{"not_a_string_but_object":"string_but_in_object"}]}',
'{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {"type":"string"},
"additionalItems": false
}
}
}'
)
);
}
Expand Down

0 comments on commit fb52ae3

Please sign in to comment.