Skip to content

Release v4.185.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 03:21
8404039

Applications and tools that read the executable model can now check a value against a concept's rules through Screenplay's own evaluator, instead of keeping a copy of it.

Added

  • SemanticValidationRules.Check in Cratis.Screenplay.Semantics checks a value against one rule, against every rule of a concept, or against a type, walking composites and collections. Each SemanticRuleCheck says whether the rule was satisfied, failed or could not be evaluated, and carries the rule, its message and, for matches, the pattern check. It is the same implementation the reference evaluator uses: absent values pass every rule except not-empty, text compares ordinally, numbers compare as exact decimals, and Studio text-rule patterns evaluate as their first-class rule. See Check values against validation rules. (#811)