Skip to content

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

Closed

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 }"
    }
  }
}

Activity

  1. added
    type: bugSomething isn't working
    priority: highIndicates a high priority issue
    weight: 2An issue with a low development impact
    on Aug 18, 2022
  2. added this to the 0.2.0 milestone on Aug 18, 2022
  3. self-assigned this
    on Aug 18, 2022
  4. added a commit that references this issue on Aug 18, 2022
    f176a86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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