We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug 递归结构体作为请求参数时,在v0.7.0版本中没做优化,他会导致无法停止遍历
To Reproduce 举个例子
type AppMenu struct { Parent *AppMenu Children []AppMenu } func (m *menuApi) CreateMenus(ctx context.Context, c *app.RequestContext) { var info AppMenu if err := c.Bind(&info); err != nil { server.ReplyWithFailed(e.ArgumentParseFailed, err, c) return } fmt.Println(info ) }
它会一直遍历Parent字段
Hertz version:
v0.7.0
The text was updated successfully, but these errors were encountered:
我来修复下
Sorry, something went wrong.
@dorlolo 感谢反馈,之前漏掉了文中的 case。目前 #1016 已修复。如果你是json body的话,可以先使用 BindJSON,规避这个问题
@FGYFFFF 好的!
FGYFFFF
No branches or pull requests
Describe the bug
递归结构体作为请求参数时,在v0.7.0版本中没做优化,他会导致无法停止遍历
To Reproduce
举个例子
它会一直遍历Parent字段
Hertz version:
v0.7.0
The text was updated successfully, but these errors were encountered: