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

[FEATURE] Add a mechanism to generate a fake data json #70

Closed
bhatipradeep opened this issue Oct 9, 2021 · 2 comments
Closed

[FEATURE] Add a mechanism to generate a fake data json #70

bhatipradeep opened this issue Oct 9, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@bhatipradeep
Copy link
Contributor

bhatipradeep commented Oct 9, 2021

Is your feature request related to a problem? Please describe.
Currently we have several generators available in Faker. But what if we have a mechanism which takes a format as input and returns a data with same format completely generated by the generators of faker. The format will contain multiple data fields and nested complexity. This can be useful for generating multiple test scenarios in one go.

Describe the solution you'd like
You recursive search and build of data using faker generators.

@bhatipradeep bhatipradeep added the enhancement New feature or request label Oct 9, 2021
@jaswdr
Copy link
Owner

jaswdr commented Oct 10, 2021

@bhatipradeep thanks for the idea, I agree that it is a good one, the reflect module probably should be used for this, but feel free to sent a PR.

@jaswdr jaswdr self-assigned this Jul 8, 2022
@jaswdr
Copy link
Owner

jaswdr commented Aug 18, 2023

I created a new Json generator that can both generate json strings and json objects formatted as map[string]interface{}. The first version with this feature is v1.19.0.

Since this was implemented and released, I'm closing this issue.

@jaswdr jaswdr closed this as completed Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants