Skip to content

Define min/max constraint for date type field? #582

Description

@BenPortner

Dear frictionlessdata community,

I am currently realizing my first frictionless project and I have a question:
My resource is a table and one of the columns contains date-type data. I would like to specify a constraint on that column, however when I try to set minimumor maximum, validation fails. What is the correct way to specifiy a minimum/maximum constraint on date-type columns?

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!
Ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions