Skip to content

Commit

Permalink
Feedback schema updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rhys-burendo committed Nov 25, 2024
1 parent 5606875 commit a943d10
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/schemas/feedback.schema.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import * as z from 'zod'

export const feedbackSchema = z
.object({
what_was_your_reason_for_visiting_the_dashboard_today: z.string().optional().nullable(),
did_you_find_everything_you_were_looking_for: z.enum(['Yes', 'No']).or(z.undefined()),
how_could_we_improve_your_experience_with_the_dashboard: z.string().optional().nullable(),
what_would_you_like_to_see_on_the_dashboard_in_the_future: z.string().optional().nullable(),
})
.required()
// export const feedbackSchema = z
// .object({
// what_was_your_reason_for_visiting_the_dashboard_today: z.string().optional().nullable(),
// did_you_find_everything_you_were_looking_for: z.enum(['Yes', 'No']).or(z.undefined()),
// how_could_we_improve_your_experience_with_the_dashboard: z.string().optional().nullable(),
// what_would_you_like_to_see_on_the_dashboard_in_the_future: z.string().optional().nullable(),
// })
// .required()

export const feedbackSchema = z.record(z.string(), z.string())

0 comments on commit a943d10

Please sign in to comment.