2
Validation for Related Data
Source: directus/directus#22317 · opened by @FutureBuddha
Summary The idea is to be able, in validations in the data modeling of fields, to make comparisons with the related data. For now, it is only possible to use the ID of the relation Basic Example I have two fields: an image field (logo) for single images and a files field (gallery) for multiple pictures. Now, I want to make a validation so that the size of the picture has to be bigger than 500kb. Motivation It would provide much better flexibility for data modeling. Detailed Design ![image]( Here, there should be an option to select which field from the relation is to be used, maybe similar to the columns in the bookmarks Requirements List Must Have: A way to make comparisons with relational data. Should Have: • C Could Have: A dropdown select with all possible fields for validation. Won't Have: • E Drawbacks I don't see a good reason not to do it. Alternatives To use a flow like here, wonderfully done. Adoption Strategy not s…
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
Allow ignore non-existing field rule
6 votes · 0 comments
Deep Validation in Create Permission
20 votes · 0 comments
Data Studio Date Validation Erroring
0 votes · 0 comments
No comments yet.