From e3fcaef40581478b34b0873c111097afe8690083 Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sun, 24 Sep 2023 12:11:46 +0100 Subject: [PATCH] fix: plumb through middleware --- .../typescript-koa/src/api.github.com.yaml/generated.ts | 2 +- integration-tests/typescript-koa/src/okta.idp.yaml/generated.ts | 2 +- .../typescript-koa/src/okta.oauth.yaml/generated.ts | 2 +- .../typescript-koa/src/petstore-expanded.yaml/generated.ts | 2 +- integration-tests/typescript-koa/src/stripe.yaml/generated.ts | 2 +- .../typescript-koa/src/todo-lists.yaml/generated.ts | 2 +- .../src/typescript/typescript-koa/typescript-koa.generator.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/integration-tests/typescript-koa/src/api.github.com.yaml/generated.ts b/integration-tests/typescript-koa/src/api.github.com.yaml/generated.ts index d91c7d864..98c472fa4 100644 --- a/integration-tests/typescript-koa/src/api.github.com.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/api.github.com.yaml/generated.ts @@ -49762,7 +49762,7 @@ export function bootstrap( }) return startServer({ - middleware: [], + middleware: config.middleware, router, port: config.port, }) diff --git a/integration-tests/typescript-koa/src/okta.idp.yaml/generated.ts b/integration-tests/typescript-koa/src/okta.idp.yaml/generated.ts index 605dbb138..a57e7c211 100644 --- a/integration-tests/typescript-koa/src/okta.idp.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/okta.idp.yaml/generated.ts @@ -1110,7 +1110,7 @@ export function bootstrap( ) return startServer({ - middleware: [], + middleware: config.middleware, router, port: config.port, }) diff --git a/integration-tests/typescript-koa/src/okta.oauth.yaml/generated.ts b/integration-tests/typescript-koa/src/okta.oauth.yaml/generated.ts index a3143aada..126b9cb5a 100644 --- a/integration-tests/typescript-koa/src/okta.oauth.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/okta.oauth.yaml/generated.ts @@ -1409,7 +1409,7 @@ export function bootstrap( ) return startServer({ - middleware: [], + middleware: config.middleware, router, port: config.port, }) diff --git a/integration-tests/typescript-koa/src/petstore-expanded.yaml/generated.ts b/integration-tests/typescript-koa/src/petstore-expanded.yaml/generated.ts index 8a8ef6fd8..3d2b7a178 100644 --- a/integration-tests/typescript-koa/src/petstore-expanded.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/petstore-expanded.yaml/generated.ts @@ -157,7 +157,7 @@ export function bootstrap( }) return startServer({ - middleware: [], + middleware: config.middleware, router, port: config.port, }) diff --git a/integration-tests/typescript-koa/src/stripe.yaml/generated.ts b/integration-tests/typescript-koa/src/stripe.yaml/generated.ts index cb29dcc5a..c1616a9d8 100644 --- a/integration-tests/typescript-koa/src/stripe.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/stripe.yaml/generated.ts @@ -46942,7 +46942,7 @@ export function bootstrap( ) return startServer({ - middleware: [], + middleware: config.middleware, router, port: config.port, }) diff --git a/integration-tests/typescript-koa/src/todo-lists.yaml/generated.ts b/integration-tests/typescript-koa/src/todo-lists.yaml/generated.ts index 7a2c8ea38..6f2c70963 100644 --- a/integration-tests/typescript-koa/src/todo-lists.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/todo-lists.yaml/generated.ts @@ -184,7 +184,7 @@ export function bootstrap( }) return startServer({ - middleware: [], + middleware: config.middleware, router, port: config.port, }) diff --git a/packages/openapi-code-generator/src/typescript/typescript-koa/typescript-koa.generator.ts b/packages/openapi-code-generator/src/typescript/typescript-koa/typescript-koa.generator.ts index 7463faccf..ab31f259a 100644 --- a/packages/openapi-code-generator/src/typescript/typescript-koa/typescript-koa.generator.ts +++ b/packages/openapi-code-generator/src/typescript/typescript-koa/typescript-koa.generator.ts @@ -194,7 +194,7 @@ export function bootstrap(implementation: Implementation, config: Omit