Closed Natim closed 9 years ago
For the following definition:
http GET https://daybed.io/v1/models/todo/definition --auth-type=hawk --auth='769:'
{ "description": "A list of my stuff to do", "fields": [ { "label": "The item", "name": "item", "type": "string" }, { "choices": [ "done", "todo" ], "label": "is it done or not", "name": "status", "type": "enum" } ], "title": "todo" }
The error:
http POST https://daybed.io/v1/models/todo/records --auth-type=hawk --auth='769:'
{ "errors": [ { "description": "Required", "location": "body", "name": "status" }, { "description": "Required", "location": "body", "name": "item" }, { "description": "Required", "location": "body", "name": "status" }, { "description": "Required", "location": "body", "name": "item" }, { "description": "Required", "location": "body", "name": "item" }, { "description": "Required", "location": "body", "name": "status" } ], "status": "error" }
The expected result is:
{ "errors": [ { "description": "Required", "location": "body", "name": "status" }, { "description": "Required", "location": "body", "name": "item" } ], "status": "error" }
It was fixed in https://github.com/spiral-project/daybed/issues/236 !
Ok validated. We should probably make a release then.
For the following definition:
The error:
The expected result is: