bbbco / insomnia-plugin-faker

Faker Plugin for Insomnia REST Client
71 stars 7 forks source link

Accepts arguments as valid JSON types separated by comma #9

Closed danielortiz closed 2 years ago

danielortiz commented 2 years ago

This is probably a breaking change, but it allows more flexibility when passing arguments as modifier it takes more than one argument, and any JSON valid type is accepted, so for example, for the Finance -> Amount, which takes (min:number, max:number, dec:number, symbol:string), now works with something like 100, 200, 3, "$ ", which produces something like $ 144.614

image

bbbco commented 2 years ago

I just pushed version 1.1.0 that allows this to work by surrounding the optional modifier value in square brackets: [100, 200, 3, "$ "]