validate icon indicating copy to clipboard operation
validate copied to clipboard

⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。

Results 28 validate issues
Sort by recently updated
recently updated
newest added

如: ```go type A struct { T1 string `validate:"required"` T2 string `validate:"required"` } type B struct { T1 string `json:"T1,omitempty"` // is not required A } ``` 原先有一个A结构体,在A结构体上扩展出B(相当于B继承了A, 然后T1字段想把它改为非required) 前端传过来一个...

question

**Describe the bug** Currently, `fullUrl` returns invalid URLs as valid ones. Same is the case with `Url`. We should improve the regex like here: https://github.com/asaskevich/govalidator/blob/master/patterns.go#L41 Examples: ``` https://www.googl_?e.com/testme https://www https://not%23...

enhancement

在集成echo的发现的问题,最后单独实现了一个validate接口给echo,内部调用struct,最终给前端的时候,是error接口,强行转回validate.Errors类型,但是这个时候已经没办法重新格式化语种

help wanted
suggestion

**old:** ```go // Gt check value greater dst value. only check for: int(X), uint(X), float(X) func Gt(val interface{}, dstVal int64) bool { ``` **v2 new:** ```go // Gt check value...

enhancement
help wanted

I have defined some custom scenes so that I can validate my struct in different ways. ``` func (User) ConfigValidation(v *validate.Validation) { v.WithScenes(validate.SValues{ Create: []string{"Kind", "Name", "Birthday"}, Update: []string{"ID", "Kind",...

enhancement

Hi, I have a field that is only present if another field has a certain value. ``` type A struct { Type string `validate:"in:B,C"` B C } type B struct...

question

**System (please complete the following information):** - OS: `macOS` - GO Version: `1.21.4` - Pkg Version: `1.5.2` **Describe the bug** Hi! I'm having troubles with embeded structs. They are not...

bug

**Issue Summary:** I would like to request the addition of a new validation rule called "IsActiveURL" to the validation package. This rule will be used to validate whether a given...

question

I want to migrate Echo Bind() to v.BindSafeData(). Is there a way to call a bluemonday sanitizer to remove all HTML/JS from strings before the data is bound to a...

question

**System (please complete the following information):** - OS: `linux` - GO Version: `1.21` - Pkg Version: `1.5.1` **Describe the bug** A clear and concise description of what the bug is....

enhancement