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

为什么会打印出来这样的信息? 如何正确显示完整信息

### **Unexpected token '='. Expected an opening '(' before a method's parameter list** - version: 4.0.5 - broswer: safari mobile v13, chrome mobile v91 I found the commit refactor to...

` { required: true, message: '请选择请求方式', trigger: 'change', transform(value) { return (value === 1 || value === 2) ? value : '' } }`

`src/util.ts`中23行直接使用了`process.env`,导致我们的项目打包时将整个环境注入到js中,会存在安全风险

Currently it's not possible to get any relevant information of violated rules in `ValidateError`. That means it's not possible to implement some features such as log label of a field...

我有一个ESM的项目(不是vue前端这样的项目,而是 express 后端项目,使用了 ESM 模块), 引用了 async-validator,如下: ```ts import Schema from "async-validator"; const schema = new Schema(xxxx); ``` 上面的代码会报错:TypeError: Schema is not a constructor 如果对 async-validator/dist-node/index.js 最后一行代码进行如下修改,则问题修复: ```ts // exports['default']...

现在,当一个 validator 内部发生错误时,整个 validate 方法就卡住了,既不 resolve,也不 reject 作为一个 workaround,必须在每个 validator 中自己 try catch,类似 function validator() { try { /* .... */ } catch (e) { return e } } 不太友好