From ada46749971e3deb0a08d997df2ee0e13cc71921 Mon Sep 17 00:00:00 2001 From: ngc2207 Date: Mon, 3 Feb 2025 12:12:02 +0800 Subject: [PATCH] feat(workspaces): add schema for creating workspaces --- src/features/workspaces/schemas.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/features/workspaces/schemas.ts diff --git a/src/features/workspaces/schemas.ts b/src/features/workspaces/schemas.ts new file mode 100644 index 0000000..0b706fb --- /dev/null +++ b/src/features/workspaces/schemas.ts @@ -0,0 +1,5 @@ +import { z } from "zod"; + +export const createWorkspaceSchema = z.object({ + name: z.string().trim().min(1, "Required"), +});