Describe the bug
When I post a substance, if it is missing the description, privateQcNote, or publicQcNote, the POST is rejected. These were not listed as required fields in issue #90, so should not be required in a POST.
To Reproduce
POST the body below to the {{baseUrl]]/substances endpoint
{ "data": { "type": "substance", "attributes": { "casrn": "7732-19-6", "display_name": "Waters", "preferred_name": "waterss" }, "relationships": { "qcLevel": { "data": { "id": 1, "type": "qcLevel" } }, "source": { "data": { "id": 1, "type": "source" } }, "substanceType": { "data": { "id": 1, "type": "substanceType" } } } } }
The errors listed include requiring of the description, privateQcNotes, and publicQcNotes
Expected behavior
The POST to be successful (provided the qcLevel, source, and substance types exists and the names and casrns have no conflicts)
Describe the bug When I post a substance, if it is missing the description, privateQcNote, or publicQcNote, the POST is rejected. These were not listed as required fields in issue #90, so should not be required in a POST.
To Reproduce POST the body below to the
{{baseUrl]]/substances
endpoint{ "data": { "type": "substance", "attributes": { "casrn": "7732-19-6", "display_name": "Waters", "preferred_name": "waterss" }, "relationships": { "qcLevel": { "data": { "id": 1, "type": "qcLevel" } }, "source": { "data": { "id": 1, "type": "source" } }, "substanceType": { "data": { "id": 1, "type": "substanceType" } } } } }
The errors listed include requiring of the description, privateQcNotes, and publicQcNotesExpected behavior The POST to be successful (provided the qcLevel, source, and substance types exists and the names and casrns have no conflicts)