Skip to content

Commit

Permalink
chore: Improve api zod schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Apr 29, 2024
1 parent 485ffc3 commit 97c5a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const errorSchema = z.object({
},
})

export const fileSchema = z.string().refine(s => Buffer.isBuffer(Buffer.from(s))).openapi({ format: 'binary' })
export const fileSchema = z.instanceof(Buffer).openapi({ type: 'string', format: 'binary' })

export const pluginManifestSchema = z.object({
name: z.string().min(1).trim(),
Expand Down

0 comments on commit 97c5a0c

Please sign in to comment.