mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-20 17:24:22 +01:00
fix: replace union type with enum "true"/"false" in /find/file endpoint (#4338)
This commit is contained in:
@@ -1188,7 +1188,7 @@ export namespace Server {
|
|||||||
"query",
|
"query",
|
||||||
z.object({
|
z.object({
|
||||||
query: z.string(),
|
query: z.string(),
|
||||||
dirs: z.union([z.literal("true"), z.literal("false")]).optional(),
|
dirs: z.enum(["true", "false"]).optional(),
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
async (c) => {
|
async (c) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user