[5.8] Add message value assertion to assertJsonValidationErrors #28787
Resubmit of #27655.
This PR adds the assertion for JSON validation error messages in
Currently, we can only check json validation error keys:
With this addition, you will be able to check the key and the message:
You can still continue to use the normal functionality by just passing a key, array of keys, or a mix of each.