Skip to content

test: validate SEFIN event XML against official schema - #77

Merged
vitormattos merged 1 commit into
mainfrom
test/event-schema-contract
Oct 4, 2026
Merged

vitormattos merged 1 commit into
mainfrom
test/event-schema-contract

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Advances #48 and #50.

Summary

  • add the v1.01 pedRegEvento and tiposEventos schema contracts alongside the existing official DPS bundle
  • add local-only EventSchemaValidator with explicit supported-version handling
  • validate representative cancellation XML and reject invalid type/order/malformed external-resource cases
  • document the verified SEFIN event endpoint matrix and the manual/Swagger discrepancy

Safety

  • no runtime schema downloads
  • libxml uses LIBXML_NONET
  • no unverified base/type-only SEFIN GET endpoint is enabled

Provenance

The event schema contents were cross-checked against two independent NFS-e implementations (OpenAC and open-nfse) and matched after BOM/line-ending normalization.

All commits are GPG verified and DCO signed.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit 3c6c87b into main Oct 4, 2026
11 checks passed
@vitormattos
vitormattos deleted the test/event-schema-contract branch October 4, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant