Skip to content

Documentation / @einvoice-ts/validator / FailureRefinement

Interface: FailureRefinement ​

Defined in: packages/validator/src/engine/context.ts:102

Where a failure is and what explains it; see RuleContext.fail.

Example ​

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

const refinement: FailureRefinement = { at: ['payableAmount'], data: { expected: '1.00' } };

Properties ​

at? ​

readonly optional at?: ModelPath

Defined in: packages/validator/src/engine/context.ts:104

Model path of the offending element, relative to the context node.


data? ​

readonly optional data?: Readonly<Record<string, string>>

Defined in: packages/validator/src/engine/context.ts:106

Values that explain the failure.

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.