Skip to content

Runtime expressions matched via Regex expressions are not properly unescaped #179

@cdavernas

Description

@cdavernas

What happened:

Runtime expressions matched via Regex expressions are not properly unescaped.

As a matter of fact, when doing Regex-based processing of JSON to extract runtime expressions, results are not unescaped, resulting in a bad format exception in jq.

What you expected to happen:

Runtime expression to be properly unescaped.

How to reproduce it:

Use a runtime expression with escaped quotes as arguments of an OpenAPI operation, such as:

{
  "name": "EscapingTest",
  "functionRef":{
    "refName": "testOperation",
   "arguments":{
      "uniquePetName": "${ .pet.name + \"_\" + .pet.id }"
    }
  }
}

Metadata

Metadata

Assignees

Labels

app: runnerConcerns the Runnerpriority: highIndicates a high priority issuetype: bugSomething isn't workingweight: 2An issue with a low development impact

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions