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

fix: Add pointer support for url query params (#3659) #3666

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

omkar-foss
Copy link
Contributor

@omkar-foss omkar-foss commented Jul 14, 2023

Summary

Fixes issue #3659.

The pointer support in url query params (using []*Struct for binding query params) was previously available in Gin, but was removed in commit 0d50ce8 since there wasn't a test case for such a scenario, and so the case block was removed as a redundant one. This PR re-adds the pointer support along with relevant tests.

Thanks @claneo for reporting #3659 in detail with the code change suggestion, and thanks @vkd for the background and review of re-adding this support.

@omkar-foss omkar-foss changed the title fix: Add support for slice of struct pointers in url params fix: Add pointer support for url query params (#3659) Jul 14, 2023
The pointer support in url query params (using []*Struct for binding query params) was previously available in Gin, but was removed in commit 0d50ce8 since there wasn't a test case for such a scenario, and so the case block was removed as a redundant one.
Copy link
Contributor

@vkd vkd left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@omkar-foss
Copy link
Contributor Author

omkar-foss commented Oct 25, 2023

@thinkerou @appleboy request you to kindly review & merge this small PR when you get a chance, thanks.

@appleboy appleboy added the bug label Oct 26, 2023
@appleboy appleboy added this to the v1.10 milestone Oct 26, 2023
@appleboy appleboy merged commit 44d0dd7 into gin-gonic:master Nov 16, 2023
@appleboy
Copy link
Member

@omkar-foss Thanks.

@omkar-foss omkar-foss deleted the fix-3659 branch November 17, 2023 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants