Skip to content

Commit 455900e

Browse files
committed
fix(openapi): just serialize response schemas
1 parent 6396e6c commit 455900e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/server/ServerImpl.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,10 @@ export class ServerImpl extends Macroable {
403403

404404
const normalizedSchema = normalizeRouteSchema(automaticSchema)
405405
const currentConfig = { ...(fastifyOptions.config || {}) }
406-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
407-
// @ts-ignore
406+
408407
const currentSwaggerSchema =
408+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
409+
// @ts-ignore
409410
currentConfig.swaggerSchema || fastifyOptions.schema
410411

411412
fastifyOptions.schema = this.mergeFastifySchemas(

0 commit comments

Comments
 (0)