From 6754cbc2f742bdd9bf4f00c3f521753e1268a232 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 17 Mar 2024 22:50:28 +0000 Subject: [PATCH 1/2] fix(deps): update dependency openapi3-ts to v4 --- package-lock.json | 35 +++++++++++++++++++---------------- package.json | 2 +- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index d0a7d3c..6bb5263 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.1.3", "license": "MIT", "dependencies": { - "openapi3-ts": "2.0.2", + "openapi3-ts": "4.2.2", "yup": "1.4.0" }, "devDependencies": { @@ -9310,11 +9310,11 @@ } }, "node_modules/openapi3-ts": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/openapi3-ts/-/openapi3-ts-2.0.2.tgz", - "integrity": "sha512-TxhYBMoqx9frXyOgnRHufjQfPXomTIHYKhSKJ6jHfj13kS8OEIhvmE8CTuQyKtjjWttAjX5DPxM1vmalEpo8Qw==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/openapi3-ts/-/openapi3-ts-4.2.2.tgz", + "integrity": "sha512-+9g4actZKeb3czfi9gVQ4Br2Ju3KwhCAQJBNaKgye5KggqcBLIhFHH+nIkcm0BUX00TrAJl6dH4JWgM4G4JWrw==", "dependencies": { - "yaml": "^1.10.2" + "yaml": "^2.3.4" } }, "node_modules/optionator": { @@ -12085,11 +12085,14 @@ "dev": true }, "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz", + "integrity": "sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==", + "bin": { + "yaml": "bin.mjs" + }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, "node_modules/yargs": { @@ -18819,11 +18822,11 @@ } }, "openapi3-ts": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/openapi3-ts/-/openapi3-ts-2.0.2.tgz", - "integrity": "sha512-TxhYBMoqx9frXyOgnRHufjQfPXomTIHYKhSKJ6jHfj13kS8OEIhvmE8CTuQyKtjjWttAjX5DPxM1vmalEpo8Qw==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/openapi3-ts/-/openapi3-ts-4.2.2.tgz", + "integrity": "sha512-+9g4actZKeb3czfi9gVQ4Br2Ju3KwhCAQJBNaKgye5KggqcBLIhFHH+nIkcm0BUX00TrAJl6dH4JWgM4G4JWrw==", "requires": { - "yaml": "^1.10.2" + "yaml": "^2.3.4" } }, "optionator": { @@ -20742,9 +20745,9 @@ "dev": true }, "yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz", + "integrity": "sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==" }, "yargs": { "version": "17.5.1", diff --git a/package.json b/package.json index d58f5f1..f4f1f7c 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "*.{json,md}": "prettier --write" }, "dependencies": { - "openapi3-ts": "2.0.2", + "openapi3-ts": "4.2.2", "yup": "1.4.0" }, "devDependencies": { From 097d0991744dce3e8471019b6ee750590740958b Mon Sep 17 00:00:00 2001 From: Krzysztof Rudowski Date: Mon, 18 Mar 2024 00:39:47 +0100 Subject: [PATCH 2/2] fix: adjust imports of openapi3-ts --- src/index.ts | 2 +- test/index.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 03bb88e..6b86ec9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import { ArraySchema, ObjectSchema } from 'yup'; import type { AnyObject, AnySchema, Lazy } from 'yup'; -import type { SchemaObject } from 'openapi3-ts'; +import type { SchemaObject } from 'openapi3-ts/oas30.d.js'; type ExtraParams = Record; diff --git a/test/index.spec.ts b/test/index.spec.ts index 5380f4a..0e09cbc 100644 --- a/test/index.spec.ts +++ b/test/index.spec.ts @@ -1,5 +1,5 @@ import * as yup from 'yup'; -import type { SchemaObject } from 'openapi3-ts'; +import type { SchemaObject } from 'openapi3-ts/oas30.d.js'; import yupToOpenAPI from '../src/index.js'; describe('yup-to-openapi', () => {