postman2openapi icon indicating copy to clipboard operation
postman2openapi copied to clipboard

Resolve dynamic variables while converting to OAS

Open vinitshahdeo opened this issue 2 years ago • 1 comments

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 converts {{$randomInt}} into a string i.e. "{{$randomInt}}" , instead of a random number like 802, which is the expected behavior.

Here's the list of supported dynamic variables.

vinitshahdeo avatar May 12 '23 09:05 vinitshahdeo

We can see if this dependency will work for faker-like functionality: https://crates.io/crates/fake

kevinswiber avatar May 12 '23 23:05 kevinswiber