Grouped country data #524
Closed
dil-abertok
started this conversation in
Ideas
Replies: 1 comment
-
Hi. Yes, that's correct. The country code is just a list/array of string:
And currency is slightly more structured, but not exactly in the way you're looking for:
The easiest is to find a CSV or some kind of list/data that has the object structure you're looking for and throw an extension method around your custom data & if you want to use Bogus' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just run into the issue of not being able to generate country data (e.g. country name and country code) that belongs together, as opposed to e.g. the
Person()
method, or theCurrency
, that contains the currency name and the currency code.The full dataset I am looking for is something like this:
I have the feeling that this is a limitation of the faker dataset that is not structured in a way that associating this data is trivial. Am I correct to assume that this would probably be a dataset change request in Faker.js?
Beta Was this translation helpful? Give feedback.
All reactions