From 2ef7ef601736c9ab12ce475462ddcde2abd8ddaf Mon Sep 17 00:00:00 2001 From: john-raymon Date: Tue, 1 Aug 2023 01:57:54 -0400 Subject: [PATCH] add validationSchemaContext to formik api docs --- docs/api/formik.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api/formik.md b/docs/api/formik.md index 0dfec7603..307e58b17 100644 --- a/docs/api/formik.md +++ b/docs/api/formik.md @@ -458,3 +458,7 @@ and/or `initialValues` change. [A Yup schema](https://github.com/jquense/yup) or a function that returns a Yup schema. This is used for validation. Errors are mapped by key to the inner component's `errors`. Its keys should match those of `values`. + +### `validationSchemaContext?: object` + +A [context object](https://github.com/jquense/yup#schemavalidatevalue-any-options-object-promiseinfertypeschema-validationerror) that is passed to the [Yup schema](https://github.com/jquense/yup) provided via the [validationSchema prop](#validationschema-schema----schema).