Skip to content

Imperted Request Body - variable replacement drops leading quote #938

Description

@bohni

Bug

HTTP Request

@ids="a", "b", "c"
POST https://httpbin.org/anything
Content-Type: application/json

<@ ./requestBodyImport.json

requestBodyImport.json

{
    "ids": [{{ids}}]
}

Output:

[...]
"data": "{\r\n    \"ids\": [a\", \"b\", \"c\"]\r\n}\r\n",
[...]

\"ids\": [a\", \"b\", \"c\"] <- missing quote before "a"

Workaround

Duplicate leading quote

@ids=""a", "b", "c"

Output:

  "data": "{\r\n    \"ids\": [\"a\", \"b\", \"c\"]\r\n}\r\n",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions