Skip to content

Commit 9d0fb48

Browse files
committed
fix: form schema
1 parent 425a4ac commit 9d0fb48

File tree

1 file changed

+13
-0
lines changed
  • packages/frontend/src/pages/AiBuilder

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import z from 'zod'
2+
3+
export const AI_FORM_SCHEMA = z.object({
4+
flowName: z.string().trim().min(1, 'Flow name is required'),
5+
trigger: z.string().trim(),
6+
actions: z
7+
.string()
8+
.trim()
9+
.min(30, 'Description must be at least 30 characters')
10+
.max(3000, 'Description must not exceed 3000 characters'),
11+
})
12+
13+
export type AiFormData = z.infer<typeof AI_FORM_SCHEMA>

0 commit comments

Comments
 (0)