Member Junction
    Preparing search index...

    A ValidationErrorInfo.Source broken into the parts a section needs in order to decide whether the failure belongs to it.

    MJ's own BaseEntity.Validate() emits a bare field name ("Code"). Callers that validate a whole object graph emit a path instead — "Modifications[2].ProvisionID" — and those failures belong to the section that hosts the collection, not to a section that happens to render a field of the same trailing name.

    interface ParsedValidationSource {
        Collection?: string;
        Field: string;
        Index?: number;
        Source: string;
    }
    Index

    Properties

    Collection?: string

    Leading collection segment of a graph path (Modifications[2].ProvisionIDModifications). undefined for a plain field-name source.

    Field: string

    Trailing field name — the last dotted segment with any [i] subscript removed. Equals Source for a plain field-name source.

    Index?: number

    Positional index within Collection when the path carried one.

    Source: string

    The original, trimmed Source string.