mirror of
https://github.com/fosrl/pangolin.git
synced 2026-04-29 20:29:41 +00:00
used zod codemod
This commit is contained in:
parent
000904eb31
commit
7db99a7dd5
191 changed files with 764 additions and 1232 deletions
|
|
@ -9,11 +9,9 @@ import createHttpError from "http-errors";
|
|||
import logger from "@server/logger";
|
||||
import { OpenAPITags, registry } from "@server/openApi";
|
||||
|
||||
const adminGetUserSchema = z
|
||||
.object({
|
||||
const adminGetUserSchema = z.strictObject({
|
||||
userId: z.string().min(1)
|
||||
})
|
||||
.strict();
|
||||
});
|
||||
|
||||
registry.registerPath({
|
||||
method: "get",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue