From 495cd742b0df2d1a50fa398952db09bfd7fe6c02 Mon Sep 17 00:00:00 2001 From: John Costa Date: Tue, 22 Apr 2025 20:44:03 +0100 Subject: [PATCH] feat(frontend): validators --- frontend/src/network/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/network/index.ts b/frontend/src/network/index.ts index 4f4ae0e..f2c06d0 100644 --- a/frontend/src/network/index.ts +++ b/frontend/src/network/index.ts @@ -87,6 +87,7 @@ const locationValidator = strictObject({ Name: string(), Address: nullable(string()), Description: nullable(string()), + Images: array(pipe(string(), uuid())), }); const contactValidator = strictObject({ @@ -95,6 +96,7 @@ const contactValidator = strictObject({ Description: nullable(string()), PhoneNumber: nullable(string()), Email: nullable(string()), + Images: array(pipe(string(), uuid())), }); const eventValidator = strictObject({ @@ -107,6 +109,7 @@ const eventValidator = strictObject({ // Location: nullable(locationValidator), OrganizerID: nullable(pipe(string(), uuid())), // Organizer: nullable(contactValidator), + Images: array(pipe(string(), uuid())), }); const noteValidator = strictObject({ @@ -114,6 +117,7 @@ const noteValidator = strictObject({ Name: string(), Description: nullable(string()), Content: string(), + Images: array(pipe(string(), uuid())), }); const locationDataType = strictObject({