ABRASF NFS-e XML Standards

0•

Ensures strict compliance with ABRASF v2.04 XML standards for Brazilian electronic service tax invoices.

This skill provides specialized guidance for maintaining the integrity of ABRASF v2.04 XML structures used in Brazilian NFS-e (Nota Fiscal de Serviços Eletrônica) systems. It enforces critical domain rules including strict XSD element ordering, specialized decimal precision for monetary and tax fields, and standardized top-level envelopes for emission, consultation, and cancellation. By providing guardrails for Go struct tags and marshalling logic, it prevents common interoperability failures with municipal web services and streamlines the regression testing process through managed golden-file workflows.

主な機能

01Automated regression testing using golden-file comparison workflows
02Custom decimal marshalling for exact monetary and tax precision
03Standardized templates for emission, query, and cancellation envelopes
040 GitHub stars
05Strict XML element ordering enforcement via Go struct tags
06Discriminated union handling for CPF and CNPJ validation

ユースケース

01Modifying XML builders without violating strict XSD schema constraints
02Implementing NFS-e emission for Brazilian municipalities using ABRASF standards
03Maintaining byte-for-byte precision in tax calculations and XML output