lucapasquale / insomnia-plugin-chance

Insomnia Plugin for Chance.JS
MIT License
15 stars 4 forks source link

Update index.js #9

Closed chaosben closed 4 years ago

chaosben commented 4 years ago

In order to uses JSON inside of the options, encoding of the arg is needed. This leads to valid requests and environments.

See also: https://github.com/Kong/insomnia/issues/2567

lucapasquale commented 4 years ago

Nice, didn't know about the encoding option

With that maybe I could change the args text to be just a regular JSON, so instead of needing to pass it like min: 1, max: 2, you could use { "min": 1, "max": 2 }. But that will come in another release

Thanks for the help!

lucapasquale commented 4 years ago

@chaosben Version 1.3.1 released :tada:

chaosben commented 4 years ago

Thank you very much! 👍