mockit icon indicating copy to clipboard operation
mockit copied to clipboard

Add random generated data from schema

Open crowz4k opened this issue 5 years ago • 2 comments

It would be great if we can provide JSON schema and API generates data for us.

crowz4k avatar May 17 '19 06:05 crowz4k

Hey @crowz4k

I like this idea, I will try and take a look into it to see what I can do.

I think I have a few ideas.

Is this to change the behavior of the randomly generated data?

boyney123 avatar May 19 '19 11:05 boyney123

Yes, so you can provide a schema like JSON and then you can get randomly generated data and that data can be generated either automatically or when the user hit the route.

Why this is good? Let's say you want to test system where every time you need to have different data, so if you have static data it will not work. But if you have the option to get random each time you hit a route that will be awesome.

crowz4k avatar May 19 '19 11:05 crowz4k