This commit is contained in:
8
store/src/routes/user/user.validation.ts
Normal file
8
store/src/routes/user/user.validation.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { z } from "@hono/zod-openapi";
|
||||
|
||||
export const UserSchema = z
|
||||
.object({
|
||||
id: z.string().uuid(),
|
||||
name: z.string().min(1),
|
||||
})
|
||||
.openapi("User");
|
||||
Reference in New Issue
Block a user