Skip to main content
These clauses express relationships whose applicability or result depends on other values in the same object.

implies

Use implies for conditional presence, nullability, or value rules. When when is false, the constraint is satisfied. When it is true, every predicate in then.all must hold.
One antecedent can therefore require several consequences without repeating the same when block. The antecedent may also compare two compatible numeric or date-time fields:

equation

Use equation to derive one numeric target from required, non-null numeric sources.
Expression leaves are { path: /field } or { literal: 200 }. add and multiply accept two or more expressions; subtract accepts exactly two. Equations do not infer rounding, units, or currency semantics.

aggregate

Use aggregate to relate a numeric target to values selected from an array.
Operations are sum, count, min, and max. An optional when guard is useful when a partial page cannot prove an aggregate over the complete collection. For state transitions and strings rendered from fields, continue to Lifecycles and templates.