mx-cfdi-v4 addon. When applied to an invoice, it will automatically ensure that any extensions and validation rules are performed, so that document can subsequently be processed by a conversion tool into the local XML CFDI format, in the case, gobl.cfdi.
The key advantage with addons is that the original content of the GOBL invoice is still intact, maintaining the global compatibility, but ensuring that any local or format restrictions are accounted for.
Sources
Addons are sourced from multiple repositories:- Core addons are bundled with GOBL itself and are always available.
- External addons live in their own Go modules, such as gobl.fr.ctc and gobl.sa.zatca. GOBL keeps a curated list of approved external addons so that their keys are recognized in the
$addonsschema, but each module must be imported by the consuming application for its normalization and validation rules to run. The set of external addons bundled with gobl.dev and documented here is defined by gobl.dev’sbundlepackage.
v0.200.0 release of GOBL.