apideck-libraries/postman-to-k6

Strange auth conversion when value contains "-" character

thim81 opened this issue · 4 comments

It seems that there is a problem when converting this authorization key (1st screenshot), I guess "-" is a special character

image
image

I'm seeing the same issue with the latest version:

      auth(config, Var) {
        config.headers.x - api - key = `${pm[Var]("API_KEY")}`;
      }

@zomgbre It issue is linked to handling of special characters when chaining properties.

I'll try to find to work on a fix, but it might take some time.

hi @zomgbre

A fix has been implemented, so with the next postman-to-k6 release, this issue should be solved.

hi @zomgbre, the latest postman-to-k6 version (1.8.5) contains this enhancement.