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

Ignore empty string for query parameter #497

Merged

Conversation

habara-k
Copy link
Contributor

@habara-k habara-k commented Oct 30, 2024

This resolves #474.

Changes

We are customizing SDK code generation to generate code that directly passes arguments to functions, instead of using a request body struct for the API.
As a result, we are unable to use the "omitempty" tag to ignore fields with empty strings.

To address this issue, we will modify the code to exclude optional string fields from url.Values when they are empty.

@habara-k habara-k requested a review from eucyt October 31, 2024 02:02
Copy link
Contributor

@eucyt eucyt left a comment

Choose a reason for hiding this comment

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

LGTM!
I confirmed auto-generated files is correct in my local env.

@habara-k habara-k merged commit ea28484 into line:master Oct 31, 2024
3 checks passed
Yang-33 pushed a commit that referenced this pull request Nov 28, 2024
This PR adds tests for these changes to correctly ignore empty values.

- #496
- #497
- #498
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.

How can I use messaging_api.GetGroupMembersIdsWithHttpInfo without specifying start?
2 participants