Skip to content

Documentation / @einvoice-ts/validator / RuleOverride

Type Alias: RuleOverride ​

RuleOverride = Partial<Pick<Rule, "context" | "message" | "severity" | "test" | "when">>

Defined in: packages/validator/src/rulesets/define.ts:28

What a ruleset may change about a rule of the composition. when replaces the rule's own gate; the gate of the ruleset that defined the rule is kept.

Example ​

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

const softer: RuleOverride = { severity: 'warning' };

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.