type

WritePhase

The completeness policy for the current write candidate, independent of whether a public snapshot exists.

Values

PropertyTypeDescription
WritePhaseNone""A read or non-content operation.
WritePhaseDraft"draft"An editorial save may defer required fields and minimum text or row counts; other validators still run.
WritePhasePublished"published"A publication candidate must satisfy full completeness, including supplied exact translations.

How it works

Inspect operation.Context.WritePhase in a custom validator when a rule applies only at publication. A published document can have pending working changes, so its status alone does not identify the current validation phase.

Full signature