When i validating fields with validateObject function, i get error response like:
{
"message": "The given data was invalid.",
"errors": {
"status": [
"The status field is required."
],
"expiry_date": [
"The expiry date field is required."
]
}
}
Which is not valid jsonapi error response.
valid should be:
{
"errors": [
{
"source": { "parameter": "status" },
"title": "The given data was invalid.",
"detail": "The status field is required."
},
{
"source": { "parameter": "expiry_date" },
"title": "The given data was invalid.",
"detail": "The expiry date field is required."
}
]
}
When i validating fields with validateObject function, i get error response like:
Which is not valid jsonapi error response.
valid should be: