Skip to content

Commit

Permalink
Implemented client-side validation to ensure data integrity before se…
Browse files Browse the repository at this point in the history
…nding requests
  • Loading branch information
Nathaniel81 committed Mar 17, 2024
1 parent 8bd4627 commit b6abe55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/frontend/src/lib/validators/image.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { z } from 'zod'

export const ProfilePictureValidator = z.object({
profilePictureUrl: z.string(),
})

0 comments on commit b6abe55

Please sign in to comment.