booknds / swagger-data-generator

Generate mock data from a Swagger Doc
MIT License
20 stars 10 forks source link

[IDEA] Generate more meaningful data #5

Open tyomo4ka opened 7 years ago

tyomo4ka commented 7 years ago

It's a nice tool. Very easy to use and it does exactly what I want – generates sample JSON files for my API.

It would be super cool if it can work with something like faker and generate more meaningful data which will be closer to real life examples.

It can be based on field names. Let's say if there is field called email or canonicalEmail and we can generate fake email with faker.

Check faker api, it can give you some inspiration of what can be done.

https://github.com/marak/Faker.js/#api-methods

EricHenry commented 7 years ago

This is actually a great idea.