Comments (4)
Thanks for raising the issue @anefedov !
I'll take a look at it over this weekend.
I can see that phone_number
for en-US
looks weird -
kotlin-faker/core/src/main/resources/locales/en-US.yml
Lines 89 to 97 in c87c1c7
en
locale:
Shouldn't throw errors though.
What version are you using btw?
Have you considered switching to en
locale ? I never really understood why they had separate en-US.yml file in ruby-faker (which is where all the yml files come from) in the first place. I think en
and en-US
are supposed to be the same locale basically:
But maybe not? 🤔
from kotlin-faker.
I'm on v1.13.0-rc.3, but also tried 1.12.0 with the same result.
I was actually using en
locale at first, but it's generating invalid US phone numbers. So I have to use en-US
from kotlin-faker.
I see. I'll take a look at how this can be fixed. Probably some changes needed to en-US.yml
file. Not an approach I like to (ab)use too much, since it becomes harder to merge changes to dictionaries later on from upstream, but I haven't found a better one on how to handle cases like this, where a localized dict has "functions" that don't exists in the default en
locale.
from kotlin-faker.
@anefedov , please try version 1.13.0-rc.4
(just released and should be available in central soon) - this issue should be fixed in that version. And feel free to reopen if the issue is still there.
from kotlin-faker.
Related Issues (20)
- When creating class instance I would like to prepend string values with the name of the property (feature request) HOT 12
- Add context when newInstance() fails HOT 4
- Crashes in Jetpack Compose previews HOT 1
- Move to java17 as default
- Cannot generate valid en-GB postcode HOT 7
- Remove SLF4J HOT 1
- Getting 'ClassCastException' when using kotlin-faker with Generics Type HOT 9
- Postal Code for CA/UK returns regex, not an actual Postal Code HOT 5
- Add blns
- Add rendering for sub-provider functions in cli
- Make it possible to lookup providers by name in cli
- Improve integration tests
- Allow RandomClassProvider::randomClassInstance to use predefinedGenerators from config if present HOT 4
- RandomClassProvider doesn't handle constructorless types correctly in all instances HOT 1
- Allow random to be used with unique HOT 1
- Regexify generates invalid value HOT 2
- Regexify should take Regex as an argument HOT 1
- Regexify fails with StackOverflowError HOT 5
- random.nextLong(bound: Long) also returns negative values HOT 3
- Suggestion: internet.ipv4() and internet.ipv6() HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlin-faker.