https://github.com/jquense/yup/issues/1906
Unclaimed project
Are you a maintainer of yup? Claim this project to take control of your public changelog and roadmap.
Changelog
Dead simple Object schema validation
Last updated about 2 months ago
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
https://github.com/jquense/yup/issues/1906
Fixes published artifacts for the main field
Beta 5 fixes partial and deepPartial making it work correctly with lazy schema. Specifically the optionality is added after lazy is evaluated but before any other when conditions are added. This makes it consistent with other conditional schema, where runtime conditions always supersede previous schema configuration. This allows for optional overrides if necessary.
const person...
This release fixes a bug with object().partial where required() schema we're still failing validation. Now they will no longer do that. To enable this fix we made a breaking change to the way that required is implemented.
schema.required no longer adds a test named 'required', this state can be determined via the schema spec or describe() metadataBeta.2 adds core tuple type support, see the docs for more: https://github.com/jquense/yup#tuple
Schema.Changes the object generics to store the derived type instead of the object shape. This imposes a few limitations on type accuracy at the edges, but dramatically speeds up the type processing by tsc on the command line and in editor. It also removes the need for the SchemaOf helper which worked...poorly.
Instead the ObjectSchema class accepts a plain type as its first generic: