Closed bhtw closed 1 year ago
Hi @bhtw,
That´s not a bug, as you can read in the documentation here the parameter
input
is defined as String. Path of the Postman collection file or value of the postman collection as String.
, you are not providing a string so you are breaking the contract ;-), that's all.
If you want a new feature that accept the input as an object just open a feature request please but not a bug.
Best regards.
Error:
Cannot convert Postman collection due to error TypeError: input.trim is not a function.
How to reproduce:
code used
Result
Purposed solution
I made this change, and then it worked:
I guess you should do more checks or something, but this fix made it work for me. And if you have more places where you do a trim without checking if the parameter is a String, then this should be impelented too, I guess.
Hope this helps others as well that might have had this issue.