fix: replace union type with enum "true"/"false" in /find/file endpoint (#4338)

This commit is contained in:
Tyler Gannon
2025-11-14 17:48:23 -06:00
committed by GitHub
parent f5230d1f02
commit c724d2392f

View File

@@ -1188,7 +1188,7 @@ export namespace Server {
"query",
z.object({
query: z.string(),
dirs: z.union([z.literal("true"), z.literal("false")]).optional(),
dirs: z.enum(["true", "false"]).optional(),
}),
),
async (c) => {