uncertain-scarletU
Refine2y ago
18 replies
uncertain-scarlet

Server Validation only pickups the message but not each error

I'm using the simple rest data provider and I want to do server validation on create/update, but the errors are not shown in the form, just a generic "There was an error creating device (status code: 400)" the message sent from the server is there in the notification but the fields are not marked as error. this is the response I'm sending when validation fails on the server.

{
  "message": "algo fallo",
  "statusCode": 400,
  "errors": {
    "ip": [
      "dog"
    ],
    "title": [
      "cat"
    ]
  }
}
Was this page helpful?