Skip to content
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 Zip Codes (US) #481

Open
llamuh opened this issue Jun 29, 2023 · 0 comments
Open

Invalid Zip Codes (US) #481

llamuh opened this issue Jun 29, 2023 · 0 comments
Labels

Comments

@llamuh
Copy link

llamuh commented Jun 29, 2023

Version Information

Software Version(s)
Bogus NuGet Package 34.0.2
Visual Studio 2022 17.6.3
Language C#

What locale are you using with Bogus?

en_US

What's the problem?

I am getting a lot of invalid zip codes generated by Bogus. I have my locale set to en_US. I am wanting a 5 digit zip so I have "f.Address.ZipCode("#####")" but I have also tried it without any args or even with #####-#### but am still getting a lot of invalid zip codes. The zip codes seem to just be random numbers. As an example, the last zip generated was 95266 which is not a valid US zip code. I have verified the zip codes with the USPS to be sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant