zoubingwu / msw-auto-mock

A cli tool to generate random mock data from OpenAPI definition for msw.
246 stars 54 forks source link

Support image urls via faker.image #26

Closed lukaskoebe closed 1 year ago

lukaskoebe commented 1 year ago

Hey there, so first of all thanks a lot for creating this library, it's really useful awesome and I use it all the time for my storybook mock back-end. Now I came across an issue where I also wanted some mock images and since faker also supports this I thought this could be a feature of this library. Basically the idea is, that whenever something that would usually be detected as an url and it additionally includes "image", "picture" or "photo", we can return a faker.image.image().