Skip to content

Commit 48fa5f9

Browse files
committed
chore: regenerate
1 parent 256102e commit 48fa5f9

File tree

4 files changed

+1304
-276
lines changed

4 files changed

+1304
-276
lines changed

integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33182,7 +33182,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
3318233182
const migrationsListForOrgQuerySchema = z.object({
3318333183
per_page: z.coerce.number().optional(),
3318433184
page: z.coerce.number().optional(),
33185-
exclude: z.array(z.enum(["repositories"])).optional(),
33185+
exclude: z
33186+
.union([z.array(z.enum(["repositories"])), z.enum(["repositories"])])
33187+
.optional()
33188+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
3318633189
})
3318733190

3318833191
const migrationsListForOrgResponseValidator = responseValidationFactory(
@@ -33309,7 +33312,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
3330933312
})
3331033313

3331133314
const migrationsGetStatusForOrgQuerySchema = z.object({
33312-
exclude: z.array(z.enum(["repositories"])).optional(),
33315+
exclude: z
33316+
.union([z.array(z.enum(["repositories"])), z.enum(["repositories"])])
33317+
.optional()
33318+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
3331333319
})
3331433320

3331533321
const migrationsGetStatusForOrgResponseValidator = responseValidationFactory(
@@ -35204,7 +35210,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
3520435210
page: z.coerce.number().optional(),
3520535211
sort: z.enum(["created_at"]).optional(),
3520635212
direction: z.enum(["asc", "desc"]).optional(),
35207-
owner: z.array(z.string()).max(10).optional(),
35213+
owner: z
35214+
.union([z.array(z.string()).max(10), z.string()])
35215+
.optional()
35216+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
3520835217
repository: z.string().optional(),
3520935218
permission: z.string().optional(),
3521035219
last_used_before: z.string().datetime({ offset: true }).optional(),
@@ -35513,7 +35522,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
3551335522
page: z.coerce.number().optional(),
3551435523
sort: z.enum(["created_at"]).optional(),
3551535524
direction: z.enum(["asc", "desc"]).optional(),
35516-
owner: z.array(z.string()).max(10).optional(),
35525+
owner: z
35526+
.union([z.array(z.string()).max(10), z.string()])
35527+
.optional()
35528+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
3551735529
repository: z.string().optional(),
3551835530
permission: z.string().optional(),
3551935531
last_used_before: z.string().datetime({ offset: true }).optional(),
@@ -76414,7 +76426,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
7641476426
})
7641576427

7641676428
const migrationsGetStatusForAuthenticatedUserQuerySchema = z.object({
76417-
exclude: z.array(z.string()).optional(),
76429+
exclude: z
76430+
.union([z.array(z.string()), z.string()])
76431+
.optional()
76432+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
7641876433
})
7641976434

7642076435
const migrationsGetStatusForAuthenticatedUserResponseValidator =

integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
10111011
top: z.coerce.number().optional(),
10121012
skip: z.coerce.number().optional(),
10131013
maxpagesize: z.coerce.number().optional(),
1014-
select: z.array(z.string()).optional(),
1014+
select: z
1015+
.union([z.array(z.string()), z.string()])
1016+
.optional()
1017+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
10151018
})
10161019

10171020
const widgetsListWidgetsResponseValidator = responseValidationFactory(

integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
102102
const router = new KoaRouter()
103103

104104
const findPetsQuerySchema = z.object({
105-
tags: z.array(z.string()).optional(),
105+
tags: z
106+
.union([z.array(z.string()), z.string()])
107+
.optional()
108+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
106109
limit: z.coerce.number().optional(),
107110
})
108111

0 commit comments

Comments
 (0)