Closed Ravf95 closed 1 year ago
DRT fails with the example https://standard.open-contracting.org/review/data/b7bec8fb-eae2-40bb-9335-77328c1e5dd6
Also, kingfisher process saves this error as sequence item 0: expected str instance, int found
on release_check_error and record_check_error tables
It's a bug in lib-cove. It expects the non-unique IDs to be str, but in this case they are int. It needs to coerce the values to str at https://github.com/OpenDataServices/lib-cove/blob/b86ac38c63e94a1262554a13e4c8ac9d95fa8a20/libcove/lib/common.py#L137
You'll need to make a PR against lib-cove first, then upgrade the version once the fix is released.
The CLI fails when input uses an extension that contains an array of items with duplicate identifiers (e.g bid extension)
libcoveocds log
``` Traceback (most recent call last): File "../py/lib-cove-ocds/0__11__0/lib-cove-ocds-0.11.0/.ve/bin/libcoveocds", line 11, inexample
``` { "uri": "https://www.example.com", "publisher": { "name": "Example" }, "extensions": [ "https://raw.githubusercontent.com/open-contracting-extensions/ocds_bid_extension/master/extension.json" ], "publishedDate": "2010-05-10T09:30:00Z", "license": "http://opendatacommons.org/licenses/pddl/1.0/", "publicationPolicy": "https://github.com/open-contracting/sample-data/", "version": "1.1", "releases": [ { "ocid": "ocds-213czf-000-00001", "id": "ocds-213czf-000-00001-04-planning", "date": "2010-05-10T09:30:00Z", "language": "en", "tag": [ "planning" ], "initiationType": "tender", "bids": { "details": [ { "items": [ { "id": 1 }, { "id": 1 } ] } ] } } ] } ```I'm not sure why this is happening, also I tested with other core fields that using item definition but the output is
Non-unique id values
(works fine)cc @jpmckinney