Skip to content

Commit a0cd0fd

Browse files
Copilotmrlubos
andcommitted
Update test snapshots for numeric enum Zod schema generation
Co-authored-by: mrlubos <[email protected]>
1 parent 1bf53bb commit a0cd0fd

File tree

1 file changed

+15
-1
lines changed
  • packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/webhooks

1 file changed

+15
-1
lines changed

packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/webhooks/zod.gen.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,21 @@ export const zSessionUserRoomSystemCalloutFailedWebhookRequest = z.object({
630630
host_id: z.string(),
631631
message_id: z.string(),
632632
inviter_name: z.string(),
633-
reason_type: z.unknown(),
633+
reason_type: z.union([
634+
z.literal(0),
635+
z.literal(1),
636+
z.literal(2),
637+
z.literal(3),
638+
z.literal(4),
639+
z.literal(7),
640+
z.literal(8),
641+
z.literal(9),
642+
z.literal(10),
643+
z.literal(11),
644+
z.literal(12),
645+
z.literal(13),
646+
z.literal(14)
647+
]),
634648
participant: z.object({
635649
call_type: z.string(),
636650
device_ip: z.string()

0 commit comments

Comments
 (0)