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.
Comments
Similar requests
Allow validation on nested relational values through parent validation settings
1 vote · 0 comments
Reusable Field Templates for Consistent and Efficient Schema Design
6 votes · 0 comments
Validation for Related Data
2 votes · 0 comments
Store asset transformations for reference when serving assets from outside of the studio app
3 votes · 0 comments
Data Studio App collection URL's should support search and filter query parameters
9 votes · 0 comments
No comments yet.