jezzsantos / automate

Templatize patterns from your own codebase, make them programmable, then share them with your team. https://jezzsantos.github.io/automate/
https://www.nuget.org/packages/automate
MIT License
7 stars 0 forks source link

Custom Validation Rules #62

Open jezzsantos opened 2 years ago

jezzsantos commented 2 years ago

We need the ability to add custom validation constraints to a pattern. On any element/collection, add a validation rule that must evaluate a boolean result, and provide a failure message.

Both the validation rule and the message can use scriban templating expressions. They will be evaluated with all other built-in validation rules.