Uh oh!
There was an error while loading. Please reload this page.
[REQ][typescript-angular]: support for object as query parameters - #4407
Conversation
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
macjohnny
commented
Nov 7, 2019
Thanks for your PR |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
BTW, travis dies with 'A tuple type element list cannot be empty' but my local build with maven has not reported a problem. I'm not sure how to reproduce the error locally. |
9df82cf to
da8c203Compareaanno2
commented
Nov 13, 2019
I have updated and merge-squashed my PR with an appropriate author email. No 'real' changes. |
Uh oh!
There was an error while loading. Please reload this page.
da8c203 to
4a96e2dCompareaanno2
commented
Nov 14, 2019
@macjohnny: Thank you for accepting my contribution. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
please merge the current master into your branch and update the samples again |
Introduced a typo before I run out of time yesterday. All fixed now. |
There was a problem hiding this comment.
Oops. Not done on purpose. Sorry!
macjohnny
commented
Dec 4, 2019
@aanno2 can you please merge the current master and update the samples? |
dougal83
commented
Dec 28, 2019
@aanno2 Thanks for this pull request. Just run into the issue myself. All set for next release? |
greghopkins
commented
Jan 14, 2020
Would love for this to get merged soon... 🙏 😉 |
wing328
commented
Jan 14, 2020
@aanno2 please resolve the merge conflicts and merge the latest master into this branch. Let me know if you need help on this. |
…/builds/with-npm/package.json
…ot/builds/with-npm/tsconfig.json
7102035 to
e461319Compareaanno2
commented
Jan 22, 2020
@wing328: As requested, I have rebased the PR onto the current master branch. |
macjohnny
commented
Jan 22, 2020
@aanno2 can you please fix the build error: |
| private addToHttpParamsRecursive(httpParams: HttpParams, value: any, key?: string): HttpParams { | ||
| if (typeof value === "object") { | ||
| if (Array.isArray(value)) { | ||
| (value as []).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); |
There was a problem hiding this comment.
| (value as []).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); | |
| (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); |
There was a problem hiding this comment.
Thank you for helping out. I just applied your suggestion.
macjohnny
commented
Jan 22, 2020
please re-generate the samples |
kenisteward
commented
Mar 6, 2020
@macjohnny. Has this been released in a version yet? I was legit looking into fixing this but found this or and am super happy haha |
dougal83
commented
Mar 7, 2020
Yes, it is in the latest version. |
spencerfontein
commented
Mar 19, 2020
looks like this was merged to 4.3.0, but the latest available on npm is 4.2.3 https://www.npmjs.com/package/@openapitools/openapi-generator-cli. Is there a way I can use the fix ? |
dougal83
commented
Mar 19, 2020
Are you sure? I thought that the milestone on the right was an at-a-glance indicator and it says 4.2.3. Also, if I recall correctly then I've used this feature from the current npm version. Where are you seeing 4.3.0? |
spencerfontein
commented
Mar 19, 2020
I clicked on this link #5174 that daniel-frank posted a few comments back and it mentioned 4.3. I am currently using 4.2.3 I have the Pagination object in my Java code as a query param and this is the TS I get Maybe I'm missing something This is the command I'm running
Thanks for the help |
dougal83
commented
Mar 19, 2020
I think it would be best to open a new issue to query this and include your 'openapi.json'. Hopefully, someone can point out the issue. |
fixes#4404
@macjohnny: Thank you for review
I've updated the PR and hope it will be more in-line with what is expected.
PR checklist
@TiFu@taxpon@sebastianhaas@kenisteward@Vrolijkx@macjohnny@nicokoenig@topce@akehir
issue by @aanno2