gbv / jskos-server

Web service to access JSKOS data
https://coli-conc.gbv.de/api/
MIT License
6 stars 4 forks source link

Issue with PATCH /concordances (and possibly annotations) #199

Closed stefandesu closed 1 year ago

stefandesu commented 1 year ago

PATCH /concordances uses lodash's _.merge method to merge the provided patch into the existing object. This will lead to some old data being included even though it was supposed to be removed. For example, it is not possible to remove the prefLabel of a contributor (see https://github.com/gbv/cocoda/issues/708, so it can be tested with Cocoda now) or to remove a concordance's description.

stefandesu commented 1 year ago

Adjusted and fixed for all PATCH endpoints.