Skip to content

Commit

Permalink
add validationSchemaContext to formik api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
john-raymon committed Aug 1, 2023
1 parent ccdcb39 commit 2ef7ef6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/formik.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit 2ef7ef6

Please sign in to comment.