Closed dinosk closed 6 years ago
Trying to create a test record I saw the following message:
$ curl -k -H "Content-type: application/json" -XPOST https://localhost:5000/api/records/ -d '{"title":"aaa1", "name":"test"}' {"status": 400, "message": "Validation error.", "errors": [{"field": "name", "message": "Unknown field name name"}, {"field": "name", "message": "Missing data for required field."}]}%
which doesn't mention that the required name field is inside the contributors field.
name
contributors
$ curl -k -H "Content-type: application/json" -XPOST https://localhost:5000/api/records/ -d '{"title":"aaa1", "contributors":[{"name": "Doe, John"}]}' {"created"... works ok
Mentioned in https://github.com/marshmallow-code/marshmallow/issues/319 and fixed in https://github.com/marshmallow-code/marshmallow/pull/754, but wasn't included in 2.15.4 and it is planned for v3.
Trying to create a test record I saw the following message:
which doesn't mention that the required
name
field is inside thecontributors
field.