Closed lgalke closed 6 years ago
Could you maybe provide an example with which I can test?
Basically any bibliographic entry from the EXTERNAL
tab and also the internal ones whenever you dare to add some identifier
.
In particular,
{ "_id": "59f89542cddeb54b39191259"
"identifiers": [
{ scheme: "DOI", literalValue: "10.1007/978-3-642-60805-6" }
], ...
}
I deployed a new version in which the identifiers array was added for BibliographicEntries to the Swagger validation. This should resolve the problem. Please check whether it works.
Still a thing:
500 - Internal Server Error {"errors":{"parts.10.identifiers":{"message":"Cast to Array failed for value \"[ { scheme: 'DOI', literalValue: '10.1016/S0165-4896(99)00007-4' } ]\" at path \"identifiers\"","name":"CastError","stringValue":"\"[ { scheme: 'DOI', literalValue: '10.1016/S0165-4896(99)00007-4' } ]\"","kind":"Array","value":[{"scheme":"DOI","literalValue":"10.1016/S0165-4896(99)00007-4","_id":"5a12e12ea207a468e522244b"}],"path":"identifiers","reason":{}}},"_message":"br validation failed","message":"br validation failed: parts.10.identifiers: Cast to Array failed for value \"[ { scheme: 'DOI', literalValue: '10.1016/S0165-4896(99)00007-4' } ]\" at path \"identifiers\"","name":"ValidationError"}
When submitting any entry form, the form validation fails for its identifiers (we added those because of CrossRef)
When there are no identifiers given (as usual for the OCR result), everything works fine.