Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add dynamic variable for UUIDv7 & improve README #1392

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ accurately mirror your API. Requests can also store sample responses when saved
like name and description too so that all the information that a developer needs to use your API is available easily.

To know more about Postman Collections, visit the
[collection documentation section on Postman Website](https://www.getpostman.com/collection).
[collection documentation section on Postman Website](https://www.postman.com/collection/).

> The new [Collection Format v2](http://blog.getpostman.com/2015/06/05/travelogue-of-postman-collection-format-v2/)
> The new [Collection Format v2](https://blog.postman.com/travelogue-of-postman-collection-format-v2/)
> builds a stronger foundation for improving your productivity while working with APIs. We want your feedback and iron
> out issues before this goes into the Postman Apps.

Expand Down
8 changes: 8 additions & 0 deletions lib/superstring/dynamic-variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,14 @@ var faker = require('@faker-js/faker/locale/en'),
description: 'A random 36-character UUID',
generator: faker.datatype.uuid
},

$randomUUIDv7: {
description: 'A v7 style guid',
generator: function () {
return uuid.v7();
}
},

$randomBoolean: {
description: 'A random boolean value (true/false)',
generator: faker.datatype.boolean
Expand Down