Skip to content

Add ZATCA rule set - #9

Merged
migueltorresvalls merged 3 commits into
mainfrom
zatca-support
Jun 15, 2026
Merged

Add ZATCA rule set#9
migueltorresvalls merged 3 commits into
mainfrom
zatca-support

Conversation

@migueltorresvalls

Copy link
Copy Markdown
Contributor

No description provided.

@migueltorresvalls migueltorresvalls changed the title Add ZATCA rule set and schematron Add ZATCA rule set Apr 27, 2026
@migueltorresvalls
migueltorresvalls marked this pull request as ready for review April 27, 2026 17:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Saudi Arabia (ZATCA) e-invoicing validation support via phive-rules, and introduces a targeted fallback to recover from a known SVRL/JAXB parsing failure in the ZATCA Schematron layer.

Changes:

  • Register ZATCA validation rules in the Phive rules initializer.
  • Add the phive-rules-zatca Maven dependency.
  • Add a ZATCA-specific Schematron SVRL fallback path that re-runs the XSLT and parses SVRL with schema validation disabled after stripping whitespace-only text nodes.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/main/java/rpc/ValidationServiceImpl.java Adds ZATCA Schematron SVRL fallback re-parse logic and uses the “effective” result when building layer output.
src/main/java/config/PhiveRulesInitializer.java Registers the ZATCA ruleset via reflection-based initializer.
pom.xml Adds phive-rules-zatca dependency to include the ZATCA ruleset.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/rpc/ValidationServiceImpl.java Outdated
@migueltorresvalls
migueltorresvalls merged commit 38c9210 into main Jun 15, 2026
6 checks passed
@migueltorresvalls
migueltorresvalls deleted the zatca-support branch June 15, 2026 15:51
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.

3 participants