schema-generator icon indicating copy to clipboard operation
schema-generator copied to clipboard

[enhancement] also generate faker yaml files which leverages hautelook/AliceBundle

Open Evertt opened this issue 8 years ago • 1 comments

I guess it should be possible to map every Schema.org property to a reasonable faker-data-point. This would just be so nice to have. To be able to just write a simple yaml file saying what schemas with which properties you want to use from Schema.org, execute a console command and then to immediately have entities, working api endpoints and fake data ready to go.

Evertt avatar May 30 '17 18:05 Evertt

Such generators shouldn't be too hard to do but I don't think this belongs to the core but rather as a dedicated library leveraging both. This would allow to make opinionated choices regarding things such as the location and name of the generated fixture files which can virtually be anywhere.

Also you can have multiple fixture files for the same entity if you don't use a fixture set of all your tests (and I don't recommend to do so either as it quickly becomes hard to maintain if you use it for your tests)

theofidry avatar May 31 '17 14:05 theofidry