async-validator icon indicating copy to clipboard operation
async-validator copied to clipboard

validate form asynchronous

Results 126 async-validator issues
Sort by recently updated
recently updated
newest added

```node const Schema = require('async-validator').default const descriptor = { body: { type: 'object', arr: { type: 'array', defaultField: { type: 'string' }, transform(value) { console.log('transform: ', value) if (typeof value...

Hello could you explain why "www.ka-table.com" is a valid url? - it does not have protocol https:// - should it be invalid? https://github.com/yiminghe/async-validator/blob/b9a84a7313e8741703e65bbbf878cfa1bad5734f/src/rule/url.ts#L69 expected: "www.ka-table.com" - invalid "https://www.ka-table.com" - valid...

How to use debouncedRequest in validator,

{type:'regexp',required:true,message: '请输入正则表达式', trigger: 'blur'} 这样写没有验证效果。请问应该怎么使用?

Hi, Could you provide a variable to replace name in default message ? I use fullField but it seem to be a bad idea or it's bad referenced or not...

用Vitest进行测试. 由于使用了asyncValidator中的定义. { validator: inputCheck, trigger: 'click' } 测试代码执行时formEl.validate((valid, fields) 中取不到fields. 不知道应该如何在Vitest中配置才能正常执行验证部分的代码.

data init 是在生命周期 created 之前的操作,那为什么beforeCreate里面为data新增属性不是响应式呢,按理说beforeCreate里面还没有data init,这时候我们新增洗个属性,data init完成后就有以来收集啊