Skip to content

feat(db): add drizzle-zod validation schemas for mutation input validation#98

Open
batuhanlog wants to merge 2 commits intoixahmedxi:mainfrom
batuhanlog:feat/drizzle-zod-validation
Open

feat(db): add drizzle-zod validation schemas for mutation input validation#98
batuhanlog wants to merge 2 commits intoixahmedxi:mainfrom
batuhanlog:feat/drizzle-zod-validation

Conversation

@batuhanlog
Copy link
Copy Markdown

Summary

Adds drizzle-zod integration to @orbitkit/db for automatic Zod schema generation from Drizzle tables.

Changes

  • Added drizzle-zod dependency
  • Created validation/index.ts with insert/select schemas for User, Session, OAuth
  • Custom Zod refinements (email, URL, min length)
  • Exported TypeScript types
  • New ./validation export path

Closes #66

…ation

- Add drizzle-zod dependency to @orbitkit/db package
- Create validation schemas using createInsertSchema and createSelectSchema
- Add custom Zod refinements (email validation, URL validation, min length)
- Export insert/select schemas and inferred types for User, Session, OAuth
- Add new './validation' export path in package.json

Closes ixahmedxi#66
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 21, 2026

🦋 Changeset detected

Latest commit: 9e1ab98

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

This PR includes changesets to release 4 packages
Name Type
@orbitkit/db Patch
@orbitkit/web Patch
@orbitkit/api Patch
@orbitkit/auth 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

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.

Feature Request: add drizzle-zod for mutation input validation

2 participants