Define min/max constraint for date type field? #583
-
Dear frictionlessdata community, I am currently realizing my first frictionless project and I have a question: My field description looks like this: {
'name': 'Date',
'description': 'Reference date between 1950 and 2100.',
'type': 'date',
'constraints': {
'required': True,
// 'minimum': '1950',
// 'maximum': '2100',
}
} Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @BenPortner thanks for this question. I'm tagging @roll who can help answer it. :-) |
Beta Was this translation helpful? Give feedback.
-
Hi @BenPortner, The constraint should follow the data type and format so for your date column it will be BTW there is the
|
Beta Was this translation helpful? Give feedback.
Hi @BenPortner,
The constraint should follow the data type and format so for your date column it will be
2020-01-01
.BTW there is the
year
data type available - https://specs.frictionlessdata.io/table-schema/#types-and-formats. So you can have: