Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable to set multiple values with the same key #444

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

qmachard
Copy link
Contributor

@qmachard qmachard commented Jun 8, 2022

This PR is only a Typing changes to support multiple values with the same key

const templ = uriTemplate.parse("http://localhost:8080/api/contacts{?status}");
const expanded = templ.expand({status: ["valid", "waiting"]});

// http://localhost:8080/api/contacts?status=valid,waiting

Resolves #421

@evert evert merged commit 94f9cb1 into badgateway:main Jun 8, 2022
@evert
Copy link
Collaborator

evert commented Jun 8, 2022

Lets do it!

@qmachard qmachard deleted the fix/support-query-params-array branch June 9, 2022 07:24
@remidewitte
Copy link

Hello,
Any chance to have this change on a 7.x release ?

Many thanks !
Rémi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow LinkVariables to support multiple values with the same key
3 participants