מחולל סכמות Zod מטפסים קיימים | VibeScale Prompts
חזרה לכל הפרומפטים

מחולל סכמות Zod מטפסים קיימים

הופך ממשקי Typescript לסכמות ולידציה של Zod באופן אוטומטי, כולל הודעות שגיאה בעברית.

מודל: Claude 3.5 Sonnetקטגוריה: פיתוח
Convert the following TypeScript interface into a robust Zod schema.

CONSTRAINTS:
1. Every field must have a custom error message in Hebrew (e.g., .min(1, { message: "שדה חובה" })).
2. Use .email() for email fields and .regex() for Israeli phone numbers if applicable.
3. If a field is optional, use .optional() or .nullable() appropriately based on the source interface.
4. Export the schema and the inferred Type using `z.infer`.

מתי כדאי להשתמש?

חסכון בזמן בכתיבת ולידציות לטפסים או API responses.