Skip to content

Documentation / @einvoice-ts/validator / ValidationFailure

Interface: ValidationFailure ​

Defined in: packages/validator/src/engine/validate.ts:166

The outcome of a run with at least one fatal issue.

Example ​

ts
import type { ValidationFailure } from '@einvoice-ts/validator';

Extends ​

  • ValidationReport

Properties ​

counts ​

readonly counts: ValidationCounts

Defined in: packages/validator/src/engine/validate.ts:132

How many rules ran and what they found.

Inherited from ​

ValidationReport.counts


document ​

readonly document: undefined

Defined in: packages/validator/src/engine/validate.ts:168

Not available: the document did not validate.


fatal ​

readonly fatal: readonly Issue[]

Defined in: packages/validator/src/engine/validate.ts:134

The fatal issues, in evaluation order.

Inherited from ​

ValidationReport.fatal


issues ​

readonly issues: readonly Issue[]

Defined in: packages/validator/src/engine/validate.ts:136

Every issue, fatal and warning, in evaluation order.

Inherited from ​

ValidationReport.issues


ok ​

readonly ok: false

Defined in: packages/validator/src/engine/validate.ts:170

At least one fatal issue was found.


ruleset ​

readonly ruleset: ValidationRulesetInfo

Defined in: packages/validator/src/engine/validate.ts:138

The composition that ran.

Inherited from ​

ValidationReport.ruleset


warnings ​

readonly warnings: readonly Issue[]

Defined in: packages/validator/src/engine/validate.ts:140

The warnings, in evaluation order.

Inherited from ​

ValidationReport.warnings

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.