efficient-indigoE
Refine3y ago
27 replies
efficient-indigo

displaying field level validation errors from the backend

Hi,
My backend returns validation structured validation errors on post or put, with field level error information for example:
{
    "modelState": {
        "name": "validate error"
    },
    "message": "Name: validate error"
}


How can I get the error for the name field to display next to the name field in refine. Is there a specific exception error structure I need to use?
Was this page helpful?