FeatureFuel
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.

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