Package-level declarations

Types

Link copied to clipboard

One check the MRZ validator can run on a document, in the stable order the check records are reported in.

Link copied to clipboard
data class MrzCheckRecord(val check: MrzCheck, val field: MrzField, val outcome: CheckOutcome)

One check the validator ran (or did not run) on a document, with the field it covers and its outcome.

Link copied to clipboard

Why an MRZ check came out io.lightine.tessera.types.vocabulary.CheckOutcome.NotRun: the input the check needs was missing or could not be read. Each value is a fact about the input, never a verdict on the document.

Link copied to clipboard

Checks a parsed MRZ for check digit, date, and sex observations and returns them.

Link copied to clipboard
data class ValidationResult(val validationFailures: List<MrzValidationError>, val warnings: List<MrzWarning>, val structuralFailure: MrzParseError? = null, val checks: List<MrzCheckRecord> = emptyList())

The result of validating an MRZ: validation failures, warnings, a structural failure, and one record per check.