Skip to main content
Version: v1

EditValidationResult Enum

The result of validation of an Edit.

Signature

export declare enum EditValidationResult

Flags

Flag Description
Invalid The edit is well-formed but cannot be applied to the current view, generally because concurrent changes caused one or more merge conflicts. For example, the edit refers to the StablePlace after node C, but C has since been deleted.
Malformed The edit contained one or more malformed changes (e.g. was missing required fields such as id), or contained a sequence of changes that could not possibly be applied sequentially without error (e.g. an edit which tries to insert the same detached node twice).
Valid The edit is well-formed and can be applied to the current view.

Invalid

The edit is well-formed but cannot be applied to the current view, generally because concurrent changes caused one or more merge conflicts. For example, the edit refers to the StablePlace after node C, but C has since been deleted.

Signature

Invalid = 1

Malformed

The edit contained one or more malformed changes (e.g. was missing required fields such as id), or contained a sequence of changes that could not possibly be applied sequentially without error (e.g. an edit which tries to insert the same detached node twice).

Signature

Malformed = 0

Valid

The edit is well-formed and can be applied to the current view.

Signature

Valid = 2