Skip to content

Documentation / @einvoice-ts/validator / en16931Ruleset

Variable: en16931Ruleset ​

const en16931Ruleset: Ruleset

Defined in: packages/validator/src/rulesets/en16931.ts:78

The EN 16931 rules for UBL: BR-* and the bespoke UBL-* rules. On its own it is what validate() runs for the plain EN 16931 customization id; every other ruleset requires it.

Example ​

ts
import { en16931Ruleset, validate } from '@einvoice-ts/validator';

validate(invoice, { ruleset: [en16931Ruleset] });

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.