Closed eromoe closed 2 years ago
:+1: for documenting this. The valid values for value_types
are nowhere documented.
My own testing yielded that you can pass built-in types (int
, str
, float
, etc. without ""
) or names of providers (e.g. 'email'
)
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
example doesn't show the value_types http://faker.readthedocs.io/en/master/providers/faker.providers.python.html
I want generate a ramdon json with all key and value is string. But only
fake.pystruct(count=10)
workI look into the provider.python and find:
But still error
This
fake.pystruct(10, 'str')
work, you should change the doc with a correct