fix: loosen-up Feedback schema (#3852)

This commit is contained in:
Jonas 2025-08-01 08:12:39 +02:00 committed by GitHub
parent d519d1e9ee
commit 379aba5f23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,9 +19,9 @@ import z from 'zod'
export const FeedbackSchema = z.object({ export const FeedbackSchema = z.object({
message: z.string().min(5).max(1000), message: z.string().min(5).max(1000),
type: z.enum(['suggestion', 'appreciation', 'other']), type: z.enum(['suggestion', 'appreciation', 'other']),
page: z.string().min(3).max(20), page: z.string().min(3).max(25),
// For heading based feedback // For heading based feedback
heading: z.string().min(3).max(20).optional() heading: z.string().min(3).max(99).optional()
}) })
export interface Option { export interface Option {