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
1.7.4
optional
升级1.7.4版本后,optional可选参数修饰符不生效,所有数字类型的字段,在传递空值时报错。
比如以下结构体:
type UserInfoRequest struct { UserId int32 `form:"user_id,optional"` }
当请求参数传递了user_id 字段,但该字段值为空,会触发以下报错:
user_id
strconv.ParseInt: parsing "": invalid syntax
请官方查看一下该问题
The text was updated successfully, but these errors were encountered:
Duplidate #4578
Sorry, something went wrong.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
No branches or pull requests
升级
1.7.4
版本后,optional
可选参数修饰符不生效,所有数字类型的字段,在传递空值时报错。比如以下结构体:
当请求参数传递了
user_id
字段,但该字段值为空,会触发以下报错:请官方查看一下该问题
The text was updated successfully, but these errors were encountered: