Properties in a custom validator

I have a requirement similar to one that @BartButenaers described some time ago. I would like to use the same custom validator for the defaults of several similar properties, but be able to pass the validator a different parameter value in each case, and have access to all of the other parameter values. Is the workaround suggested by @knolleary still the best approach, and how would it play with the new opt parameter in the validation function?

It is certainly still viable and valid, but if you want a different approach you could curry your validation function.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.