Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

magda-dap-connector generates date string that doesn't match JSON schema #1

Open
t83714 opened this issue Feb 14, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@t83714
Copy link
Contributor

t83714 commented Feb 14, 2020

Describe the bug

magda-dap-connector generates date string that doesn't match JSON schema for dcat-dataset-strings aspect

Failed to PUT data registry record with ID "dist-dap-9908911". 4 retries left. Status code: 400, body:
{
  "message": "#/issued: [] 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]"
}
Failed to PUT data registry record with ID "dist-dap-9908911". 3 retries left. Status code: 400, body:
{
  "message": "#/issued: [] 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]"
}

To Reproduce

Deploy magda-dap-connector with config:

    id: dap
    name: CSIRO
    sourceUrl: https://data.csiro.au/dap/ws/v2/
    pageSize: 100

Make sure validateJsonSchema option is true to turn json validation on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant