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

``` rule: { v1: [ { validator: (rule, value, callback) => { // 校验逻辑 } }, ] v2: [ { validator: (rule, value, callback) => { // 校验逻辑 // 触发v1的校验...

这个表单校验工具竟然没有校验手机号的选项,希望后期可以添加校验手机号的选项.~~~~

Can't find any description of options. How to validate fields on focus out, not on any change. user just start typing and already have warning. it s not good

If I just want to translate ```messages.js``` into other languages, how am I able to set these at runtime (when the user switches a language)? I know I can define...

I am using [AntD's forms to validate](https://ant.design/components/form/?locale=en-US#Validation-Rules) some user inputs and I am running into a case where I want to validate against multiple types for a single rule, akin...

在文件/src/rule/required.ts,源代码中message不会生效 const required: ExecuteRule = (rule, value, source, errors, options, type) => { if ( rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type)) ) { errors.push(format(options.messages.required, rule.fullField)); } }; 修改为一下代码则生效...

Hey there! I'd like to report a security issue but cannot find contact instructions on your repository. If not a hassle, might you kindly add a `SECURITY.md` file with an...

看源码里面数字判断大小都是直接用>、 9007199254740992值是false 能否考虑一下超出数字边界(Number.MAX_SAFE_INTEGER、Number.MIN_SAFE_INTEGER)的判断 ``` 9007199254740993 === 9007199254740992 // true 9007199254740993 > 9007199254740992 // false ```

使用的时候提示"'${name}' must be exactly ${len} characters" 然后在动态检测的时候报错Uncaught (in promise) Error: Maximum recursive updates exceeded. This means you have a reactive effect that is mutating its own dependencies and thus recursively...