chore: replace z.union with z.enum for cleaner OpenAPI generation (#4394)

This commit is contained in:
Tyler Gannon
2025-11-17 00:06:40 -06:00
committed by GitHub
parent 5c722bf8c4
commit e96442310c
3 changed files with 4 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ const ERRORS = {
schema: resolver(
z
.object({
data: z.any().nullable(),
data: z.any(),
errors: z.array(z.record(z.string(), z.any())),
success: z.literal(false),
})