g3-toolkit API Reference
    Preparing search index...

    Interface DocumentDiagnostic

    An element-level problem that did NOT stop the parse.

    BAD_SHAPE is the shared code from ./document-errors.ts; the rest are graph-specific and have no counterpart in the common vocabulary. BAD_VERSION predates that vocabulary, where the same condition is called UNSUPPORTED_VERSION; it keeps its name because renaming a published diagnostic code would break any host matching on it, and the two never appear in the same place.

    interface DocumentDiagnostic {
        code:
            | "BAD_SHAPE"
            | "BAD_VERSION"
            | "DUPLICATE_ID"
            | "UNKNOWN_PARENT"
            | "PARENT_CYCLE"
            | "UNKNOWN_ENDPOINT"
            | "UNKNOWN_PORT"
            | "HIERARCHY_FLATTENED";
        message: string;
        subject: string;
    }
    Index

    Properties

    Properties

    code:
        | "BAD_SHAPE"
        | "BAD_VERSION"
        | "DUPLICATE_ID"
        | "UNKNOWN_PARENT"
        | "PARENT_CYCLE"
        | "UNKNOWN_ENDPOINT"
        | "UNKNOWN_PORT"
        | "HIERARCHY_FLATTENED"
    message: string
    subject: string