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
完全搞不懂为啥 c.bind的行为一直变动
之前是 4.1.16, 一不小心升级到4.6.1
给发到线上了, 结果 bind的行为跟旧版本的有所变化, 造成很大的生产事故。
记得之前也变动过一次, 完全搞不懂 这么重要的一个方法, 一直变来变去, 不能加个新方法来解决吗》??
The text was updated successfully, but these errors were encountered:
You probably want to see https://github.com/labstack/echo/releases/tag/v4.2.0 notes about binding
Sorry, something went wrong.
This change broke a lot of our APIs developed on 4.1.17.
Is there any method in the new version that can work like the previous bind?
You have problems with binding query params not binding with PUT/POST when using c.Bind()? or Bind() not binding to struct?
c.Bind()
Bind()
For PUT/POST you can use
if err := (&DefaultBinder{}).BindQueryParams(c, &payload); err != nil { return err } if err := c.Bind(u); err != nil { return err }
https://echo.labstack.com/guide/binding/ lists all specific bind methods (query/path/header/body)
For struct tags - add struct tags to your struct definitions.
No branches or pull requests
完全搞不懂为啥 c.bind的行为一直变动
之前是 4.1.16, 一不小心升级到4.6.1
给发到线上了, 结果 bind的行为跟旧版本的有所变化, 造成很大的生产事故。
记得之前也变动过一次, 完全搞不懂 这么重要的一个方法, 一直变来变去, 不能加个新方法来解决吗》??
The text was updated successfully, but these errors were encountered: