Skip to content

[SDS-3136] Add Japan driving license checksum - #405

Merged
GeoffreyRdn merged 2 commits into
mainfrom
geoffrey.redon/SDS-3136-japan-driver-license-checksum
Oct 29, 2026
Merged

GeoffreyRdn merged 2 commits into
mainfrom
geoffrey.redon/SDS-3136-japan-driver-license-checksum

Conversation

@GeoffreyRdn

@GeoffreyRdn GeoffreyRdn commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds JapanDrivingLicenseChecksum as a secondary validator. Reuses the weighted mod-11 helper over the first ten digits, checks digit 11, and excludes the final reissuance digit.

SDS-3136: add checksum validation for Japanese driving licence numbers.

Additional Notes

The NPA circular §1(4) confirms modulus 11, but does not publish weights or remainder handling. The implementation combines WDIC and Resource Sharing.

Sources disagree on remainder zero: a Delphix input example implies check digit 0. We chose 1 following WDIC and Fujii's explicit rule. This decision is documented in the engine; it is not officially confirmed. Positive fixtures do not independently validate exceptional remainders.

@GeoffreyRdn
GeoffreyRdn force-pushed the geoffrey.redon/SDS-3136-japan-driver-license-checksum branch from 8ced893 to 95c6711 Compare October 28, 2026 15:15
@GeoffreyRdn
GeoffreyRdn marked this pull request as ready for review October 29, 2026 09:06
@GeoffreyRdn
GeoffreyRdn requested a review from a team as a code owner October 29, 2026 09:06
@GeoffreyRdn
GeoffreyRdn merged commit 912fd41 into main Oct 29, 2026
5 checks passed
@GeoffreyRdn
GeoffreyRdn deleted the geoffrey.redon/SDS-3136-japan-driver-license-checksum branch October 29, 2026 09:15
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.

2 participants