Skip to content

Documentation / @einvoice-ts/validator / ValidationSuccess

Interface: ValidationSuccess<D> ​

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

The outcome of a run without fatal issues: the document, narrowed to its canonical type.

Example ​

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

Extends ​

  • ValidationReport

Type Parameters ​

D ​

D extends Document

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: D

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

The validated document, with the composition's defaults applied.


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: true

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

No fatal issue was found (warnings may still be present).


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.