Skip to content

Commit

Permalink
fix: Fix OpenapiOperationSchema compiled types (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi authored Dec 20, 2024
1 parent 5c4e02c commit 677c19b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/openapi-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ export const OpenapiOperationSchema = z.object({
})
.optional(),
responses: ResponseSchema,
security: z.array(z.record(AuthMethodSchema, z.array(z.never()))).default([]),
security: z
.array(z.record(z.string().pipe(AuthMethodSchema), z.array(z.never())))
.default([]),
deprecated: z.boolean().default(false),
'x-response-key': z.string().nullable().optional(),
'x-title': z.string().default(''),
Expand Down

0 comments on commit 677c19b

Please sign in to comment.