Closed assert6 closed 6 years ago
如 name="age" , min=18 如果参数 age = 15 , 建议提示 age is too small 而不是 15 is too small
name="age" , min=18
提个小想法,像symfony中的字段验证时会有默认messeage template,用户在使用时也可以再自定义。
@gdc676463 每个验证器在不同的条件下会有不同的message,如何去定义?
现在 (swoft-framework:v1.0.4) 已使用属性Name作为提示语,并对提示语进行了重新的梳理
如
name="age" , min=18
如果参数 age = 15 , 建议提示 age is too small 而不是 15 is too small