mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 22:32:28 +00:00
chore: replace z.union with z.enum for cleaner OpenAPI generation (#4394)
This commit is contained in:
@@ -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),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user