Skip to content

Upgrade to support Yup 1.0.0 #306

@dml0031

Description

@dml0031

There are a couple of breaking changes that seem to break validation generation.

Ex. SchemaOf no longer exists and has been migrated to ObjectSchema.
Ref: https://github.com/jquense/yup/releases/tag/v1.0.0-alpha.3

In addition, the mixed type now requires a Type definition in order to be used with the new ObjectSchema.
Ex:
yup.lazy(() => yup.mixed()) as never => yup.lazy(() => yup.mixed<T>())

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions