magda-csw-connector generates date string that doesn't match JSON schema
Opened this issue · 0 comments
t83714 commented
Describe the bug
magda-csw-connector generates date string that doesn't match JSON schema for dcat-dataset-strings aspect
Failed to PUT data registry record with ID "dist-aims-ef67ebe0-61ac-4a0a-a5a5-52a12b4d727c-1". 1 retries left. Status code: 400, body:
{
"message": "#/issued: [2019-09-12] is not a valid date-time. Expected [yyyy-MM-dd'T'HH:mm:ssZ, yyyy-MM-dd'T'HH:mm:ss.[0-9]{1,9}Z, yyyy-MM-dd'T'HH:mm:ss[+-]HH:mm, yyyy-MM-dd'T'HH:mm:ss.[0-9]{1,9}[+-]HH:mm]"
}
Make sure validateJsonSchema
option is true
to turn json validation on
To Reproduce
Deploy magda-csw-connector
with config:
id: aims
name: Australian Institute of Marine Science
sourceUrl: https://geo.aims.gov.au/geonetwork/srv/eng/csw
pageSize: 100