You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to use random data in requests like first name, last name, email, etc. Currently, we're limited to only newUuid and newDate functions.
I think it would be convenient to prefix such functions with $ to separate them from usual variables, as this is common in many API clients. For some functions, it would be even better to support arguments (e.g., $randomInt(123), $randomAlphaNumeric(10)). Or even support expressions so we can do things like this {{$randomFirstName + ' ' + $randomLastName}}
The text was updated successfully, but these errors were encountered:
I'm having a similar problem. For example, I would like to pick a random value from a pre-defined list, such as a country code. It would also be good to define the date format for the newDate function.
Problem to solve
I want to be able to use random data in requests like first name, last name, email, etc. Currently, we're limited to only
newUuid
andnewDate
functions.Proposal
It would be great to have more random data generation functions besides existing
newUuid
andnewDate
. As an example, Postman has a great set of dynamic variables powered by faker.js (see docs: https://learning.postman.com/docs/tests-and-scripts/write-scripts/variables-list/). The fake-rs library (https://github.com/cksac/fake-rs) could be used for implementation.I think it would be convenient to prefix such functions with
$
to separate them from usual variables, as this is common in many API clients. For some functions, it would be even better to support arguments (e.g.,$randomInt(123), $randomAlphaNumeric(10)
). Or even support expressions so we can do things like this{{$randomFirstName + ' ' + $randomLastName}}
The text was updated successfully, but these errors were encountered: