Validate v1.2.0 Release Notes

Release Date: 2019-12-18 // over 4 years ago
  • ⚡️ 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

    更新记录

    • 0️⃣ 支持设置字段的默认值。eg: "required|default:tom"
    • 重要 :结构体上使用 filter 时,将会更新过滤后的值到结构体上
    • 新增 requiredXXX 系列验证器
    • 新增 stringContains|startsWith|endsWith 等验证器
    • 驼峰式的验证器名称现在都添加了下划线式的别名。 endsWith 也可以写为 ends_with
    • 修复一些已知问题
    • 更新README