jaredpalmer/formik

Is it possible to have a common general/default validation for all fields?

Open

#2,340 创建于 2020年3月4日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)TypeScript (34,255 star) (2,801 fork)batch import
help wanted

描述

Can we have a common validation that every field validates with. This should work even in case of nested objects.

Eg: Object is as follows: { field1: "", field2: { field2A: [] field2B: "" }, field3: {[ field3Ai: [] field3Bi: "" ], [ field3Aii: [] field3Bii: "" ]} }

贡献者指南