FeatureFuel
0

Data Studio Date Validation Erroring

Source: directus/directus#25389 · opened by @w0kyj
Describe the Bug

Adding date validations to a field using another date field throws error in Data Studio during item create/update, but works as expected for API and Bulk Import.


{
"message": "date must have a valid date format or reference",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}

To Reproduce

Create collection with two date fields(start_date,end_date):

![Image](

Add validation to end_date:
{"_and":[{"_or":[{"end_date":{"_null":true}},{"end_date":{"_gt":"{{start_date}}"}}]}]}

![Image](

Try to create item in collection with start/end dates populated and get error:
{
"message": "date must have a valid date format or reference",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}

Directus Version

v11.8.0

Hosting Strategy

Directus Cloud

Database

PostgreSQL

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests