framework
framework copied to clipboard
Cannot use ISO 8601 date format
Hi, I have a schema that contains a field 'date' which also specifies an ISO 8601 date format:
{
"fields": [
{
"name": "date",
"type": "date",
"description": "Week in ISO-8106 Format",
"format": "%G-W%V"
},
...
When doing validation on a data file, I get the following error.
{'type': 'type-error',
'title': 'Type Error',
'description': 'The value does not match the schema '
'type and format for this field.',
'message': 'Type error in the cell "2024-W40" in row '
'"250" and field "date" at position "1": '
'type is "date/%G-W%V"',
'tags': ['#table', '#row', '#cell'],
'note': 'type is "date/%G-W%V"',
'cells': ['2024-W40',
...
It work when I use a non-ISO date format such as "%Y-W%W", but using this would be semantically wrong.
Am I missing something here or is this a known issue? Is there a workaround?
Thank you and kind regards Simon