Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zod Schemas are smached by dg:generate. #215

Open
Ricardosgeral opened this issue Sep 25, 2024 · 0 comments
Open

zod Schemas are smached by dg:generate. #215

Ricardosgeral opened this issue Sep 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Ricardosgeral
Copy link

Config File
{
"hasSrc": false,
"packages": [
"shadcn-ui",
"prisma",
"kinde"
],
"preferredPackageManager": "pnpm",
"t3": false,
"alias": "@",
"analytics": true,
"rootPath": "",
"componentLib": "shadcn-ui",
"orm": "prisma",
"driver": "pg",
"auth": "kinde"
}
Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'zod/book.ts' for example
  2. Change for example name: z.string() to name: z.string().min(5)
  3. run db:generate
  4. In book.ts i returned to name: z.string(). I've lost the min(5)

How can I mantain my changes to schema after db:generate?

@Ricardosgeral Ricardosgeral added the bug Something isn't working label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants