fix: changes template slide layout generation prompt for schema default fix

This commit is contained in:
sauravniraula 2026-04-09 22:51:33 +05:45
parent 0737779ca9
commit 708b2f1406
No known key found for this signature in database
GPG key ID: 60FCC1B5A5E83326

View file

@ -67,7 +67,8 @@ Provide reusable TSX code which can be used as template to generate new slides w
# Zod Schema Rules:
- "describe" must be added for every fields.
- "default" must be added in top level fields of schema.
- Add `.default(...)` to every top-level field directly inside the initial `z.object({ ... })` shape.
- Must not put a single `default` on the whole object like `const Schema = z.object({ ... }).default({ ... })`.
- Top level fields are those not nested inside other fields.
- Don't mention string type in schema like "url()", "email()", etc.
- Table must be object with "columns" and "rows" fields.