Skip to content

Query parameters are being treated as prompts #128

@kyleect

Description

@kyleect

The query param ?path is being treated as a prompt reference even without the double bracket delimiters.

Get text content of a reqfile.

```%config
[[prompts]]
name = "file"
```


```%request
GET {{@clientUrl}}/api/files/file?path={{?file}} HTTP/1.1
```

Error

[
  [
    {
      "ParseError": {
        "UndefinedReferenceError": {
          "Prompt": "path"
        }
      }
    },
    {
      "start": 87,
      "end": 144
    }
  ]
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingscope:parsingParsing request files, resolve, and template values

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions