simplified the return structure

This commit is contained in:
Daniel Schick 2024-09-10 17:30:32 +02:00
parent def01c43d1
commit 8bf8a53155

View File

@ -65,18 +65,8 @@ If a validation rule fails the call should return 400 (Bad request) including an
```json
{
"message" : "reason why this call failed",
"errors" : [ {"error_message" : "first error message",
"error_description" : "first error description"},
{"error_message" : "second error message",
"error_description":"second error description"},
... ...
],
"valid_data" : {
"key1" : "value 1",
"key2" : "value 2"
... (data actually evaluated by the server)
}
"error_field" : "A reference to the respective field(s) which have caused the error",
"error_description" : "Reason why this call failed"
}
```