From 72ae24c4351f9a4e5cd83abc828f7808a6bb14f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Mon, 13 Jul 2020 16:28:06 +0200 Subject: [PATCH] feat: remove openapi-v3 from apiconnect dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use `@loopback/rest` to access openapi-related types and helpers. Signed-off-by: Miroslav Bajtoš --- extensions/apiconnect/package.json | 3 +-- extensions/apiconnect/src/apiconnect.spec-enhancer.ts | 2 +- extensions/apiconnect/tsconfig.json | 3 --- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/extensions/apiconnect/package.json b/extensions/apiconnect/package.json index 1e2f9db6a7bf..6e081e4721bb 100644 --- a/extensions/apiconnect/package.json +++ b/extensions/apiconnect/package.json @@ -40,13 +40,12 @@ }, "dependencies": { "@loopback/core": "^2.9.1", - "@loopback/openapi-v3": "^3.4.5", + "@loopback/rest": "^5.2.0", "tslib": "^2.0.0" }, "devDependencies": { "@loopback/build": "^6.1.0", "@loopback/eslint-config": "^8.0.3", - "@loopback/rest": "^5.2.0", "@loopback/testlab": "^3.2.0", "@types/node": "^10.17.27" } diff --git a/extensions/apiconnect/src/apiconnect.spec-enhancer.ts b/extensions/apiconnect/src/apiconnect.spec-enhancer.ts index b2906b5c36b9..1c99da7391a3 100644 --- a/extensions/apiconnect/src/apiconnect.spec-enhancer.ts +++ b/extensions/apiconnect/src/apiconnect.spec-enhancer.ts @@ -10,7 +10,7 @@ import { CoreBindings, inject, } from '@loopback/core'; -import {asSpecEnhancer, OASEnhancer, OpenAPIObject} from '@loopback/openapi-v3'; +import {asSpecEnhancer, OASEnhancer, OpenAPIObject} from '@loopback/rest'; /** * Configuration for IBM API Connect extensions to the OpenAPI spec diff --git a/extensions/apiconnect/tsconfig.json b/extensions/apiconnect/tsconfig.json index d86749617e9a..bdd4f3eb6b2a 100644 --- a/extensions/apiconnect/tsconfig.json +++ b/extensions/apiconnect/tsconfig.json @@ -13,9 +13,6 @@ { "path": "../../packages/core/tsconfig.json" }, - { - "path": "../../packages/openapi-v3/tsconfig.json" - }, { "path": "../../packages/rest/tsconfig.json" },