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

Remove nil values from params #756

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Remove nil values from params #756

merged 1 commit into from
Jan 17, 2024

Conversation

abnegate
Copy link
Contributor

What does this PR do?

Fix ruby not removing nil values from params before passing to the API

Test Plan

Manual test
Screenshot 2024-01-16 at 18 49 18

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

@@ -205,6 +205,8 @@ module {{ spec.title | caseUcfirst }}

headers = @headers.merge(headers)

params.compact!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting this works for key=>value too 👍🏻

@abnegate abnegate merged commit 6c7e374 into 1.5.x Jan 17, 2024
36 checks passed
@abnegate abnegate deleted the fix-ruby-null-filter branch January 17, 2024 01:31
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.

2 participants