Skip to content

Commit 74705d1

Browse files
committed
chore: regenerate
1 parent d9eb3d3 commit 74705d1

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
@@ -34177,7 +34177,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
3417734177
const migrationsListForOrgQuerySchema = z.object({
3417834178
per_page: z.coerce.number().optional(),
3417934179
page: z.coerce.number().optional(),
34180-
exclude: z.array(z.enum(["repositories"])).optional(),
34180+
exclude: z
34181+
.union([z.array(z.enum(["repositories"])), z.enum(["repositories"])])
34182+
.optional()
34183+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
3418134184
})
3418234185

3418334186
const migrationsListForOrgResponseValidator = responseValidationFactory(
@@ -34304,7 +34307,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
3430434307
})
3430534308

3430634309
const migrationsGetStatusForOrgQuerySchema = z.object({
34307-
exclude: z.array(z.enum(["repositories"])).optional(),
34310+
exclude: z
34311+
.union([z.array(z.enum(["repositories"])), z.enum(["repositories"])])
34312+
.optional()
34313+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
3430834314
})
3430934315

3431034316
const migrationsGetStatusForOrgResponseValidator = responseValidationFactory(
@@ -36199,7 +36205,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
3619936205
page: z.coerce.number().optional(),
3620036206
sort: z.enum(["created_at"]).optional(),
3620136207
direction: z.enum(["asc", "desc"]).optional(),
36202-
owner: z.array(z.string()).max(10).optional(),
36208+
owner: z
36209+
.union([z.array(z.string()).max(10), z.string()])
36210+
.optional()
36211+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
3620336212
repository: z.string().optional(),
3620436213
permission: z.string().optional(),
3620536214
last_used_before: z.string().datetime({ offset: true }).optional(),
@@ -36508,7 +36517,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
3650836517
page: z.coerce.number().optional(),
3650936518
sort: z.enum(["created_at"]).optional(),
3651036519
direction: z.enum(["asc", "desc"]).optional(),
36511-
owner: z.array(z.string()).max(10).optional(),
36520+
owner: z
36521+
.union([z.array(z.string()).max(10), z.string()])
36522+
.optional()
36523+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
3651236524
repository: z.string().optional(),
3651336525
permission: z.string().optional(),
3651436526
last_used_before: z.string().datetime({ offset: true }).optional(),
@@ -77418,7 +77430,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
7741877430
})
7741977431

7742077432
const migrationsGetStatusForAuthenticatedUserQuerySchema = z.object({
77421-
exclude: z.array(z.string()).optional(),
77433+
exclude: z
77434+
.union([z.array(z.string()), z.string()])
77435+
.optional()
77436+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
7742277437
})
7742377438

7742477439
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
@@ -1040,7 +1040,10 @@ export function createRouter(implementation: Implementation): KoaRouter {
10401040
top: z.coerce.number().optional(),
10411041
skip: z.coerce.number().optional(),
10421042
maxpagesize: z.coerce.number().optional(),
1043-
select: z.array(z.string()).optional(),
1043+
select: z
1044+
.union([z.array(z.string()), z.string()])
1045+
.optional()
1046+
.transform((it) => (Array.isArray(it) || it === undefined ? it : [it])),
10441047
})
10451048

10461049
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)