serpro69 / kotlin-faker

Port of a popular ruby faker gem written in kotlin. Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes.
https://serpro69.github.io/kotlin-faker/
MIT License
472 stars 44 forks source link

Parameter 'cities' not found in 'address' category #175

Closed oshmykova closed 1 year ago

oshmykova commented 1 year ago

https://github.com/serpro69/kotlin-faker/issues/87#issue-908678179

val config = fakerConfig { locale = "en-ZA" } 
val faker = Faker(config)
println(faker.address.city())
serpro69 commented 1 year ago

Thanks for raising the issue @oshmykova ! I will check it over the weekend, unless you want to submit a PR with a fix yourself?

serpro69 commented 1 year ago

@oshmykova , I'm not able to reproduce this issue on latest release version (1.13.0). Can you check what version you're using and try to upgrade to latest?

I can also see it's working fine with the cli-bot app:

✓ /tmp→ ./faker-bot_1.13.0 lookup city --locale 'en-ZA' --verbose
Faker()
├── address
│   ├── city() // => Zwelitsha
│   ├── cityPrefix() // => New
│   ├── citySuffix() // => berg
│   └── cityWithState() // => Grahamstown, Western Cape
├── drone
│   ├── batteryCapacity() // => 2835 mAh
│   └── maxAngularVelocity() // => 75°/s
├── elderScrolls
│   └── city() // => Shor's Stone
└── nation
    └── capitalCity() // => Budapest

✓ /tmp→ ./faker-bot_1.13.0 lookup city --locale 'en-ZA' --verbose
Faker()
├── address
│   ├── city() // => Simon's Town
│   ├── cityPrefix() // => Port
│   ├── citySuffix() // => haven
│   └── cityWithState() // => Vereeniging, Gauteng
├── drone
│   ├── batteryCapacity() // => 3874 mAh
│   └── maxAngularVelocity() // => 95°/s
├── elderScrolls
│   └── city() // => Windhelm
└── nation
    └── capitalCity() // => Havana
serpro69 commented 1 year ago

@oshmykova , any updates on this?

serpro69 commented 1 year ago

I'm going to close this as I haven't heard back from you. Feel free to reopen if you can reproduce this on the latest version.