-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[BUG] [typescript-angular]: objects as query parameters break when fields are null #5174
Closed
5 tasks done
Labels
Milestone
Comments
@daniel-frak would you like to file a PR to fix this issue? |
cc @aanno2 |
daniel-frak
added a commit
to daniel-frak/openapi-generator
that referenced
this issue
Feb 3, 2020
…rameters break when fields are null
daniel-frak
added a commit
to daniel-frak/openapi-generator
that referenced
this issue
Feb 3, 2020
5 tasks
I've filed #5197, let me know if I did this right :) |
daniel-frak
added a commit
to daniel-frak/openapi-generator
that referenced
this issue
Feb 3, 2020
daniel-frak
added a commit
to daniel-frak/openapi-generator
that referenced
this issue
Feb 3, 2020
daniel-frak
added a commit
to daniel-frak/openapi-generator
that referenced
this issue
Feb 3, 2020
5 tasks
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report Checklist
Description
When using the "objects as query parameter" support introduced in #4407, NULL fields cause an exception
TypeError: Cannot convert undefined or null to object
in theaddToHttpParamsRecursive
function of the generated service.openapi-generator version
4.2.3
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
query==null
:Related issues/PRs
None found.
Suggest a fix
I have found that adding a NULL-check in the generated addToHttpParamsRecursive method seems to fix the issue:
The text was updated successfully, but these errors were encountered: