Skip to content

Release v4.153.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 05:16
7a08128

The Cratis renderer now renders resolved validation rule bodies written in C# instead of refusing the model.

Changed

  • Command rules and concept rules with a resolved C# body that returns bool now render into the generated command and concept validators through an app-local typed context, instead of being refused with STAGE-ESM-005. A rule without a message gets the default A value does not satisfy the '<kind>' rule. (part of #513)
  • A validation rule body that reads Tenant, CausedBy or Occurred is refused with STAGE-ESM-015, naming the member; bodies must pass the same pure gate as reducer and policy bodies. (part of #513)
  • Rendering an inline generate rule factory requires the implementation requirements and resolved contents from the same Screenplay compilation; the documentation now says so. (part of #513)
  • Command and concept code-validation bodies written as iterators (yield return of messages) now render into the generated validators; interpolated messages are formatted with the invariant culture so they do not change with the host culture. Other constructs the pure gate refuses stay refused. (part of #513)