Skip to content

feat: add Yup replacements - #844

Open
yslpn wants to merge 2 commits into
e18e:mainfrom
yslpn:feat/add-yup-replacements
Open

feat: add Yup replacements#844
yslpn wants to merge 2 commits into
e18e:mainfrom
yslpn:feat/add-yup-replacements

Conversation

@yslpn

@yslpn yslpn commented Jul 30, 2026

Copy link
Copy Markdown

🔗 Linked issue

Resolves #822

📚 Description

Adds yup to the preferred replacements manifest with two modular, tree-shakable alternatives:

The shared schema-validation guide is designed for reuse by future schema-library mappings. It documents required fields, empty strings, validation pipelines/checks, async validation, type coercion, unknown object keys, and Zod Mini error locales. Both alternatives support Standard Schema.

The guide links to Zod Mini documentation and Schema Benchmarks without embedding version-sensitive benchmark figures.

⚠️ Disclosure

I am a maintainer of Valibot.

✅ Validation

  • pnpm lint
  • node scripts/validate-pr.ts

Comment thread docs/modules/yup.md Outdated
@@ -0,0 +1,61 @@
---
description: Modern alternatives to the yup package for TypeScript schema validation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would actually name this file something like schema-validation.md i think, and update the description:

Suggested change
description: Modern alternatives to the yup package for TypeScript schema validation
description: Modern alternatives for TypeScript schema validation

@gameroman what do you think? my reasoning is that we'll inevitably add more schema libraries over time. so this is a similar situation to fetch probably

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, in that case the whole doc should be changed probably to not be yup-specific?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gameroman @43081j I think it's a good idea to make it general.

If we reach an agreement, I'm ready to rewrite the entire document, making it less specific.

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.

[Replacement]: yup

3 participants