Skip to content

Support multiple instances of query param #245

Closed

Description

@LucasPickering

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

You should be able to specify query params multiple times.

Describe the solution you'd like
A clear and concise description of what you want to happen

query should be able to take a list[string] in addition to the map[string, string], where each string is a key=value format (similar to docker-compose's environment mapping). This would allow you to specify a query param multiple times. When constructing the URL, the repeated param would simply be repeated.

recipes:
  repeated: !request
    url: "{{host}}/get_data"
    query:
      - a=1
      - b=1
      - a=2

This would render to this URL: <host>/get_data?a=1&b=1&a=1

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered

Simply allowing duplicate keys. This doesn't work because the YAML spec requires keys to be unique.

Additional context
Add any other context or screenshots about the feature request here

Maintaining mapping[string, string] support is important for backward compatibility

Activity

  1. added
    featureNew behavior to enable things that were previously not possible
    on May 30, 2024
  2. added this to the 1.4.0 milestone on Jun 9, 2024
  3. added a commit that references this issue on Jun 17, 2024
  4. added a commit that references this issue on May 11, 2026
  5. added a commit that references this issue on May 14, 2026
  6. added a commit that references this issue on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew behavior to enable things that were previously not possible

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions