jaredpalmer/formik

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

Open

#2340 opened on Mar 4, 2020

View on GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (34,255 stars) (2,801 forks)batch import
help wanted

Description

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: "" ]} }

Contributor guide