2
Improve "Required" checking by treating more values as invalid
Source: directus/directus#24892 · opened by @jacobrienstra
Describe the Bug I'm filing this as an issue because something isn't right here, but it's a matter of opinion _what_ isn't correct. I'm also fairly certain about what I put here but I could totally be wrong, so please correct me if my testing seems to not line up with your experience. Though this issue would crop up for any required field(s), my use case is more specific, though still common: conditionally required fields; that is, when status is published, certain fields are required—otherwise they're optional. So they can't be validated on a database level with non NULL fields. See also: #10273 #10276 #11057 There are several axes of situation at play here, so let me outline those as I understand them: Validation happens: WHERE • Server side • Client side WHEN • onCreate • onUpdate WHY • Field is REQUIRED (marked as such on the interface settings, either always or using a condition) …
No pledges yet. Be the first to back this.
No comments yet.