wmo-im / pywcmp

pywcmp provides validation and quality assessment capabilities for the WMO WIS Core Metadata Profile (WCMP)
https://community.wmo.int/activity-areas/wis
Other
9 stars 8 forks source link

ETS: creation date fix #115

Closed tomkralidis closed 5 months ago

tomkralidis commented 5 months ago

This PR adds tighter checking of properties.created based on the RFC3339 requirement of WCMP2 / OGC API - Records.

Note:

The JSON schema specification specifies dates as a format (vs. a type), for example:

"type": "string",
"format": "date-time"

jsonschema validation, by default, does not check against format specifications, but does provide a FormatChecker that can check JSON Schema formats if they are defined in a property. For date-time formats, this requires the rfc3339-validator package. I've decided to implement this in the ETS so as not to add another dependency.