docx-validate
    Preparing search index...

    Interface BaseSchemaValidatorOptions

    interface BaseSchemaValidatorOptions {
        deadline?: RunDeadline;
        originalFile?: string;
        profile?: Profile;
        schemasDir?: string;
        unpackedDir: string;
        verbose?: boolean;
        xsdValidator?: XsdValidator;
    }
    Index
    deadline?: RunDeadline

    The wall-clock budget of the run this validator belongs to (#630). validate() asks it before each of its rules, and the schema walk before each part; a rule or part already running finishes. The steps it stops are recorded on the deadline, and validate() reports them in one error-severity validation-deadline finding. Repairs never consult it.

    originalFile?: string

    Path to the original .docx/.pptx for "ignore pre-existing errors" diffing.

    profile?: Profile

    Validation profile. Defaults to "lenient". See Profile.

    schemasDir?: string

    Where to find the XSD files. Defaults to the bundled schemas under scripts/office/schemas/ — pass an explicit path if you have copied them somewhere else.

    unpackedDir: string

    Path to the unpacked OOXML directory.

    verbose?: boolean
    xsdValidator?: XsdValidator

    Optional XSD validator override. When omitted, BaseSchemaValidator lazy-creates the default wasm-backed validator from src/lib/xsd-validator.ts. Test code may inject a fake; consumer code may swap in a different engine.

    Part of the four-class architecture cutover (PR B). The wasm default replaced the retired libxmljs2 path outright (PR B Task B.2) — the native addon cannot build against Node 26.