Closed
Description
Hi.
Thank you for making PHP Matcher 🙂
With a PHP Matcher expectation like this:
{
"@context":"/api/contexts/ConstraintViolationList",
"@type":"ConstraintViolationList",
"hydra:title":"An error occurred",
"hydra:description":@string@,
"violations":[
{
"propertyPath":"total",
"message":@string@,
"code":""
}
]
}
If [violations][0][code]
is null
null, PHP Matcher gives the following message
Value "" does not match pattern "" at path: "[violations][0][code]"
This is confusing, when seeing this you wonder why "" !== ""
🤔
Maybe it could be instead:
Value null does not match pattern "" at path: "[violations][0][code]"
Metadata
Metadata
Assignees
Labels
No labels