chore: req validation for api/developer (#5482)

This commit is contained in:
Apoorv Mishra
2023-06-26 19:20:22 +05:30
committed by GitHub
parent 06f2d7a993
commit 9987c15daf
3 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
import { z } from "zod";
import BaseSchema from "../BaseSchema";
export const CreateTestUsersSchema = BaseSchema.extend({
body: z.object({
count: z.coerce.number().default(10),
}),
});
export type CreateTestUsersReq = z.infer<typeof CreateTestUsersSchema>;