-
Notifications
You must be signed in to change notification settings - Fork 21
feat(php): Add tests for query params #475
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
Changes from 6 commits
08060ed
5b4661b
d2d7017
3797c21
1ca1d34
da197fa
2bac951
5b77a7e
2a798da
350a33e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,7 +175,9 @@ export function create{{capitalizedApiName}}(options: CreateClientOptions{{#hasR | |
{{/queryParams}}{{/vendorExtensions.x-is-custom-request}} | ||
|
||
{{#headerParams}} | ||
headers['{{baseName}}'] = {{paramName}}; | ||
if ({{paramName}} !== undefined) { | ||
headers['{{baseName}}'] = {{paramName}}; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is equivalent to before, is this needed ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes because now the param can be added both in the headers and the query params |
||
{{/headerParams}} | ||
|
||
const request: Request = { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,6 @@ | |
"user1", | ||
"user2" | ||
] | ||
}, | ||
"queryParameters": { | ||
"X-Algolia-User-ID": "userID" | ||
} | ||
} | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.