feat: add IBAN (International Bank Account Number) type#372
Merged
yezz123 merged 2 commits intopydantic:mainfrom Mar 15, 2026
Merged
feat: add IBAN (International Bank Account Number) type#372yezz123 merged 2 commits intopydantic:mainfrom
yezz123 merged 2 commits intopydantic:mainfrom
Conversation
Add a new IBAN type with full validation: - Country code validation against known IBAN country codes - Length validation per country - MOD-97 checksum validation (ISO 7064) - Automatic normalization (uppercase, space removal) Includes comprehensive tests for valid and invalid IBANs. Closes pydantic#10 Signed-off-by: edvatar <88481784+toroleapinc@users.noreply.github.com>
yezz123
approved these changes
Mar 3, 2026
Collaborator
yezz123
left a comment
There was a problem hiding this comment.
All good, can you please fix the linting issue, and I will be happy to merge it
Contributor
Author
|
@yezz123 Thanks for the approval! I'll fix the linting issue right away. Let me run the linters and push a fix. Appreciate you taking the time to review! |
Collaborator
|
Hello @toroleapinc is this fixed so we can merge it and create a release 🙌🏻 |
Contributor
Author
|
@yezz123 Just pushed the formatting fix — ruff wanted the dict expanded to one entry per line. CI should be green now. Ready to merge whenever you are! |
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.
Summary
Add a new
IBANtype for validating International Bank Account Numbers.Closes #10
Features
Usage
Tests
Includes tests for: