jaredpalmer/formik

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

Open

#2,340 opened on Mar 4, 2020

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

Repository metrics

Stars
 (34,255 stars)
PR merge metrics
 (No merged PRs in 30d)

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