Skip to content

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

Merged
appleboy merged 1 commit into
gin-gonic:masterfrom
omkar-foss:fix-3659
Nov 16, 2023
Merged

appleboy merged 1 commit into
gin-gonic:masterfrom
omkar-foss:fix-3659

Conversation

@omkar-foss

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

Copy link
Copy Markdown
Contributor

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.

@vkd vkd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

@omkar-foss

omkar-foss commented Oct 25, 2023 •

Copy link
Copy Markdown
Contributor Author

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

@appleboy appleboy added the type/bug Found something you weren't expecting? Report it here! 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
Copy Markdown
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

type/bug Found something you weren't expecting? Report it here!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants