linkedpipes / dcat-ap-forms

Forms application for filling out DCAT-AP v2.0.0 compatible metadata
MIT License
2 stars 2 forks source link

Incorrect handling of dates #59

Closed jakubklimek closed 5 years ago

jakubklimek commented 5 years ago

When filling out temporal start and temporal end on dataset, when I click the field and leave it empty, in the result, there is:

"http://schema.org/startDate": {
      "@type": "http://www.w3.org/2001/XMLSchema#date",
      "@value": ""
    },

When I fill it in and then clear it using the cross button, I get:

"http://schema.org/endDate": {
      "@type": "http://www.w3.org/2001/XMLSchema#date",
      "@value": null
    }

In both cases, the behavior is wrong. The value should not be present at all, as both are invalid JSON-LDs.