Skip to main content

Module validation

Module validation 

Source
Expand description

IMSC 1.1 profile validation — IMSC 1.1 §6–§9.

Validation is separate from parsing: parse a document, then ask “is this valid Text Profile?” or “is this valid Image Profile?” The validator checks:

  • Feature/Extension disposition table (159 rows, imsc11-profiles.md §5)
  • §7.12 “must reject” structural constraints
  • §8 Text Profile provisions
  • §9 Image Profile provisions

§Design

The validator walks the parsed document tree and reports every violation it finds, rather than stopping at the first error. This gives callers a complete picture of non-conformance.

Structs§

ValidationError
A single validation violation.
ValidationResult
Accumulated validation results.
Validator
Validator state: walks a parsed Document and accumulates violations.

Enums§

ImscVersion
Which IMSC profile version.
Profile
Which IMSC profile to validate against.