Skip to content

[plugin-valibot] add valibot plugin#93

Open
ikuru9 wants to merge 8 commits into
kubb-labs:mainfrom
ikuru9:feat/plugin-valibot
Open

[plugin-valibot] add valibot plugin#93
ikuru9 wants to merge 8 commits into
kubb-labs:mainfrom
ikuru9:feat/plugin-valibot

Conversation

@ikuru9
Copy link
Copy Markdown

@ikuru9 ikuru9 commented Apr 26, 2026

Summary

This PR adds @kubb/plugin-valibot, a new validation plugin for generating Valibot schemas from OpenAPI specs.

What changed

  • Added the new packages/plugin-valibot package with generator, printer, resolver, utils, and JSX components.
  • Implemented Valibot-specific schema behavior for:
    • optional handling (optional, exactOptional, undefinedable)
    • default handling (defaultMode: 'default' | 'fallback')
    • metadata actions (title, description, examples, extensions)
    • readonly support
  • Added package-level tests and snapshots for schema and operation generation.
  • Wired the plugin into root workspace config, examples, e2e, performance, and registry metadata.
  • Added a Valibot example app and refreshed package documentation.

Validation

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm --filter @kubb/plugin-valibot test
  • pnpm --filter @kubb/plugin-valibot lint

Notes

  • The change is intentionally structured to mirror the existing plugin layout used by other generators in the repo.
  • A changeset was added for the package update.

@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented Apr 26, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 26, 2026

🦋 Changeset detected

Latest commit: 0e095f5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@kubb/plugin-valibot Patch
tests-3.0.x Patch
e2e Patch
performance Patch
@kubb/plugin-client Patch
@kubb/plugin-cypress Patch
@kubb/plugin-faker Patch
@kubb/plugin-mcp Patch
@kubb/plugin-msw Patch
@kubb/plugin-react-query Patch
@kubb/plugin-redoc Patch
@kubb/plugin-ts Patch
@kubb/plugin-vue-query Patch
@kubb/plugin-zod Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Apr 26, 2026
Comment thread packages/plugin-valibot/src/utils.ts
ikuru9 and others added 6 commits April 27, 2026 16:12
Co-authored-by: aikido-pr-checks[bot] <169896070+aikido-pr-checks[bot]@users.noreply.github.com>
…kup map to improve readability

Co-authored-by: aikido-pr-checks[bot] <169896070+aikido-pr-checks[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants