-
-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Iban generation for CR (Costa Rica) #538
Comments
I looked into this and it seems like it's a bug that was already fixed in faker.js a couple years ago: faker-js/faker#643 In summary:
Locale dataBogus IBAN generation appears to use the Bogus/Source/Bogus/DataSets/Finance.cs Lines 375 to 377 in 80e68d7
And according to the documentation, this comes from:
Proposed fixWe've already got Bogus/Source/Bogus/data_extend/en.locale.json Lines 471 to 485 in 80e68d7
@bchavez is it alright if I raise a PR with:
|
Hey, very great find and great investigation work @dangerman. 👍 Thank you for this. If we already have a You're absolutely correct on the proposed fix:
and running Just a few more points:
The Roadmap wise, right now Bogus is basically around fakerjs v5 API + dataset parity. Longer term, we'll be catching up to v8 API + datasets; which is why some of these datasets might be outdated and as we catch up; hopefully a lot of these issues will be resolved automatically. |
Thank you @dangerman for the PR; excellent and super great work. The CR IBAN fix is now available in Bogus Thanks again for the bug report and PR fix. 👍 🚀 |
Bogus NuGet Package
35.4.0
.NET Version
.NET 6.0
Visual Studio Version
17.8.4
What operating system are you using?
Windows
What locale are you using with Bogus?
en
Problem Description
correct iban format for CR -> CR05 0152 0200 1026 2840 66 (example)
Bogus library is generating -> CR37 0051 0009 0045 0014 1 (example)
LINQPad Example or Reproduction Steps
var iban = new Faker().Finance.Iban(false, "CR");
Expected Behavior
expected valid 22 symbols iban
Actual Behavior
invalid 21 symbols iban
Known Workarounds
No response
Could you help with a pull-request?
No
The text was updated successfully, but these errors were encountered: