From 10ecb169834bde98593f585451b41461a02281d4 Mon Sep 17 00:00:00 2001 From: Jeongho Nam Date: Tue, 30 Apr 2024 01:02:10 +0900 Subject: [PATCH] Publish #18 with swagger v2 downgrade emending. --- package.json | 2 +- src/internal/SwaggerV2Downgrader.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f079161..5f577e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@samchon/openapi", - "version": "0.1.20", + "version": "0.1.21", "description": "OpenAPI definitions and converters for 'typia' and 'nestia'.", "main": "./lib/index.js", "typings": "./lib/index.d.ts", diff --git a/src/internal/SwaggerV2Downgrader.ts b/src/internal/SwaggerV2Downgrader.ts index 1d088c0..ce73eaf 100644 --- a/src/internal/SwaggerV2Downgrader.ts +++ b/src/internal/SwaggerV2Downgrader.ts @@ -115,6 +115,7 @@ export namespace SwaggerV2Downgrader { ({ ...downgradeSchema(collection)(input.schema), ...input, + required: (input.schema as any)?.required, schema: undefined, name: input.name ?? `p${i}`, }) as any;