Open CatchABus opened 2 years ago
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.
builder
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
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:
See how lazy schemas work in yup API docs: https://github.com/jquense/yup#lazyvalue-any--schema-lazy