Skip to content

Documentation / @facturometro/validator / en16931Ruleset

Variable: en16931Ruleset ​

const en16931Ruleset: Ruleset

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

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 '@facturometro/validator';

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

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.