enough-analyst-54434
01/23/2021, 9:14 PMField.compute_value
but we cannot do said same for a Target
as a whole. This precludes validating cross-field data until rule execution time and possibly means needing to complicate rule structure in order to DRY up this validation when the validation is in fact universal. A classic example would be mutually exclusive fields but I imagine there are other cases as well. Id there any reason not to introduce a validate
hook method on Target
called at the end of initialization that could be overridden to provide validation?enough-analyst-54434
01/23/2021, 9:44 PMenough-analyst-54434
01/23/2021, 9:44 PMenough-analyst-54434
01/23/2021, 9:46 PMTarget.validate
. I think Targets have never made sense though, so I'm happy with just in time FieldSet validation.hundreds-father-404
01/23/2021, 10:18 PMhundreds-father-404
01/23/2021, 10:19 PMhundreds-father-404
01/23/2021, 10:19 PMenough-analyst-54434
01/23/2021, 11:14 PMenough-analyst-54434
01/23/2021, 11:24 PM