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
type Address struct{ City string `form:"city,required" json:"city,required" query:"city,required"` } type User struct{ Name string `form:"name" json:"name,required" query:"name"` Address *Address `form:"address" json:"address,omitempty" query:"address"` } // request body 为json {"name":"Jack", "address":null} var user model.User err = binding.BindAndValidate(c, &user)
预期user能正常的绑定,user.Address == nil,实际上返回错误提示 binding: expr_path=address.city, cause=missing required parameter
binding: expr_path=address.city, cause=missing required parameter
The text was updated successfully, but these errors were encountered:
No branches or pull requests
预期user能正常的绑定,user.Address == nil,实际上返回错误提示
binding: expr_path=address.city, cause=missing required parameter
The text was updated successfully, but these errors were encountered: