Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

echovl
Copy link
Contributor

@echovl echovl commented Jun 14, 2022

Fixes #3143

@shushenghong
Copy link

yes, that's really a bug, just pass pointer to go-validator, no need depoint, this will cause the whole struct unaddressable. please merge

@appleboy appleboy added the type/bug Found something you weren't expecting? Report it here! label Dec 17, 2023
@appleboy appleboy added this to the v1.10 milestone Dec 17, 2023
@appleboy appleboy changed the title fix: dereference pointer to struct when validating structs fix(binding): dereference pointer to struct when validating structs Feb 7, 2024
@appleboy appleboy merged commit 82bcd6d into gin-gonic:master Feb 7, 2024
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.

unable to pass a pointer to struct level validator (works with a workaround)

3 participants