Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added missing support for generating errors based on yup lazy schema #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CatchABus
Copy link
Contributor

There is the case of a lazy validation schema. In that case, fields needed for errors can only be retrieved if schema's builder method is called.

Lazy schema definition according to yup:

interface SchemaLazyDescription {
  type: string;
  label?: string;
  meta: object | undefined;
}

See how lazy schemas work in yup API docs: https://github.com/jquense/yup#lazyvalue-any--schema-lazy

@CatchABus CatchABus changed the title fix: added missing support for yup lazy schema fix: added missing support for generating errors based on yup lazy schema Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant