OptionaldeadlineOptionaloriginalPath to the original .docx/.pptx for "ignore pre-existing errors" diffing.
OptionalprofileValidation profile. Defaults to "lenient". See Profile.
OptionalschemasWhere 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.
Path to the unpacked OOXML directory.
OptionalverboseOptionalxsdOptional 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.
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, andvalidate()reports them in one error-severityvalidation-deadlinefinding. Repairs never consult it.