You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConstraintViolationListNormalizer is overriding validation error for non ApiPlateform route:
I get this response:
{
"type": "https://tools.ietf.org/html/rfc2616#section-10",
"title": "An error occurred",
"status": 422,
"detail": "Cette valeur doit être de type unknown.",
"0": {
"propertyPath": "",
"message": "Cette valeur doit être de type unknown.",
"code": null,
"hint": "Failed to create object because the class misses the \"quantity\" property."
}
}
Instead of:
{
"type": "https://tools.ietf.org/html/rfc2616#section-10",
"title": "An error occurred",
"status": 422,
"detail": "Cette valeur doit être de type unknown.",
"violations": [
{
"propertyPath": "",
"message": "Cette valeur doit être de type unknown.",
"code": null,
"hint": "Failed to create object because the class misses the \"quantity\" property."
}
]
}
API Platform version(s) affected: 3.2.15
Description
ConstraintViolationListNormalizer is overriding validation error for non ApiPlateform route:
I get this response:
Instead of:
How to reproduce
https://github.com/bbarhoum1/api-platform-validation-error
Possible Solution
Thank you for your help :)
The text was updated successfully, but these errors were encountered: