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

Conversion fails if the collection contains dynamic variables #258

Open
vinitshahdeo opened this issue May 12, 2023 · 1 comment
Open

Conversion fails if the collection contains dynamic variables #258

vinitshahdeo opened this issue May 12, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@vinitshahdeo
Copy link

Postman uses the faker library to generate sample data, including random names, addresses, email addresses, and much more. These are present as dynamic variables in the Postman collection. However, when converting the collection containing these variables, it is necessary to resolve them accurately.

Presently, the conversion process fails if the collection contains dynamic variables, for example:

{
    "version": "{{$randomWord}}",
    "uptime": {{$randomInt}},
    "mem": {{$randomInt}},
    "load": [
        {{$randomInt}},
        {{$randomInt}},
        {{$randomInt}}
    ]
}

Here's the list of supported dynamic variables.

@joolfe
Copy link
Owner

joolfe commented Jul 16, 2023

Hi @vinitshahdeo,

Support of postman auto generated variables could be a cool feature, if lot of people is interested in it I will have a look but meanwhile you just need to provide a vale for this variables in the 'additionalVars' option to make you collection works.

Best regard

@joolfe joolfe added the enhancement New feature or request label Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants