Repository navigation
EN16931 1.3.17 as opt-in, 1.3.16 stays default (v1.2.0) - #11
Merged
Merged
Conversation
Vendor the official ConnectingEurope validation-1.3.17 XSLT unmodified (CII 0757f079…, UBL fc4e6cfa…) next to 1.3.16 and make 1.3.17 the default `version`. A workflow that sets `version: '1.3.16'` keeps the previous rules. 1.3.17 renames BR-AF-* to BR-IP-* and BR-AG-* to BR-IG-* (upstream #519) and removes CII-SR-471 (#514). A `fail-on` id that the selected XSLT does not contain could never fire; it is now a configuration error (exit 2) that names the replacement, e.g. "BR-AF-05 (renamed BR-IP-05 in 1.3.17)". Official examples refreshed from 1.3.17 (only CII_example3.xml changed upstream); the CII_example3 mutant is re-derived from it with the same one-line change. All ten mutants still fail with exactly the expected ids, on 1.3.17 and on 1.3.16. New report hashes: official 5ab42d1f…, mutants 35cb6995…. vendor/upstream.json pins validation-1.3.17.
The Commission registry lists EN16931 1.3.17 as effective from 15/11/26, so v1.2.0 keeps 1.3.16 as the default and offers 1.3.17 as an opt-in (`version: '1.3.17'`). The default switches in a later release. A fail-on id renamed by 1.3.17 no longer fails the job: the Action prints a ::warning with the id it uses instead and keeps filtering on it. The rename is not the same in both syntaxes (IGIC became BR-IP in CII and BR-IG in UBL, IPSI the reverse), so translation is per syntax, and the test now checks that each pair carries the same rule text. CII-SR-471 is ignored with a warning under 1.3.17; an id that neither version contains is still a configuration error. The Action jobs of the self-test now run both versions, and the cross-OS test pins the report hashes for each.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the official ConnectingEurope EN16931 validation-1.3.17 artefacts, published 2026-10-12, as an opt-in; the default stays 1.3.16. The plan is to release this as v1.2.0 and move
v1onto it after merge.Effective date. The Commission registry lists 1.3.17 as published 12/10/26 and in force from 15/11/26. Until then, 1.3.16 stays the default and
version: '1.3.17'opts in. A separate PR (#12) switches the default to 1.3.17 for av1.3.0release on 16/11/26.What changes
Vendored XSLT.
vendor/en16931-1.3.17/holds the release XSLT byte for byte (checked withcmpagainst the zips).0757f07909938b1b297b8356ab7b66406c89f1b342325385d6a2def998c817f0; UBLfc4e6cfa8596bba0c2abd19038a98960c6ee9fc1f44566787c115efd4f4aca7c.XSLT.SHA256SUMSis regenerated.vendor/upstream.jsonpinsvalidation-1.3.17for the drift probe, with zip hashese5f32358…(CII) andbf02a0e3…(UBL).vendor/en16931-1.3.16/is unchanged and remains the default.Renamed and removed rules. 1.3.17 renames the IGIC and IPSI rules (#519), and not the same way in both syntaxes. This was measured from the vendored XSLT by matching each rule's text across the two releases:
L)BR-AF-01..10BR-IP-01..10BR-IG-01..10M)BR-AG-01..10BR-IG-01..10BR-IP-01..10It also removes
CII-SR-471(#514), and addsCII-DT-105/106,CII-SR-495..497andUBL-SR-57..59.fail-onwith renamed ids.::warningnaming the id it uses instead, per syntax, and keeps filtering on it. For examplefail-on: BR-AF-01withversion: '1.3.17'filters onBR-IP-01for CII files andBR-IG-01for UBL files.version: '1.3.16'is translated the same way.CII-SR-471is ignored with a warning under 1.3.17.Tests.
fail-on: BR-AF-01still fails the job on 1.3.17 with the warning, that the filter follows the syntax, and thatmain()prints the warning.CI. The Action jobs of the self-test (
action official,action mutants) now run on both1.3.16and1.3.17, on all three OS.Test data.
CII_example3.xmlchanged upstream: oneSpecifiedTradeSettlementPaymentMeansblock was removed.CII_example3mutant is re-derived from it with the same one-line change (CalculatedAmount225 → 226).Measured
version: '1.3.17')testdata/expected-ids.json)d46955b924e88ce203ea39e5498669aa5d3204c22a87cae68f89236718382e0d5ab42d1f115a524f9ce524f65b8755bfab9cdc750d30d1b35548264716b3b95e26b49d80dcf82e0b256a415564cc67bf68362ce2903c2e41d6cf9b79d85050b635cb6995e323611b8e774be6b4e59e885bb8ea7b10a330a5d59b8c550c6ab803The 1.3.16 hashes differ from those of
v1.1.2only becauseCII_example3.xmlis now the 1.3.17 copy.CII-BR-CO-10-RoundingIssue.xmlCII_business_example_01.xmlCII_business_example_02.xmlCII_business_example_Z.xmlCII_example1.xmlCII_example3.xmlCII_example5.xmlXRechnung-O.xmlhuf_example_cii.xmlubl-tc434-creditnote1.xmlLocal results:
scripts/selftest.pyis green (114 unit tests, determinism, identity gate, supply-chain gate,saxonche==13.0.0).Docs
@v1→v1.2.0, 1.3.16 by default, 1.3.17 opt-in);fail-onbehaviour;action.yml: theversiondefault is1.3.16. The Marketplace description is "Run the official EN16931 1.3.16 XSLT (1.3.17 opt-in) on Factur-X / ZUGFeRD CII XML and UBL XML; fail on svrl:failed-assert." (123 characters).version:line, so it follows the default), and the testdata READMEs.After merge (not in this PR)
v1.2.0on the merge commit.@v1.2.0from a throwaway branch (expected hashes above, both versions), then delete the branch.v1.v1.2.0release to the Marketplace.<full-commit-sha>with the real SHA.