Releases: gookit/validate
Releases · gookit/validate
v1.2.3
v1.2.1
Release v1.2.1
- update readme
- some bugs fixed
Update
- new: add new method for add bulitin message
- new: allow setting field map from struct tags, defualt is
json
- new: allow set message from struct tag
- new: add github actions tests
更新
- 新增:添加用于添加内置消息的新方法
- 新增:允许从struct标记设置字段映射,tag默认为
json
- 新增:允许从struct标记设置错误消息,tag默认为
message
- 新增:添加github actions测试
v1.2.0
Update
- Supports setting default values for fields. eg:
"required|default:tom"
- Important: When using
filter
on a structure, the filtered value will be updated to the structure - Added
requiredXXX
series validators - Added
stringContains|startsWith|endsWith
and other validators - Camel-style validator names now have underlined aliases.
endsWith
can also be written asends_with
- Fix some known issues
- Update README
更新记录
- 支持设置字段的默认值。eg:
"required|default:tom"
- 重要:结构体上使用
filter
时,将会更新过滤后的值到结构体上 - 新增
requiredXXX
系列验证器 - 新增
stringContains|startsWith|endsWith
等验证器 - 驼峰式的验证器名称现在都添加了下划线式的别名。
endsWith
也可以写为ends_with
- 修复一些已知问题
- 更新README