From e9d7a8b1d0a2dd34c62565a22f55d4cc182270a3 Mon Sep 17 00:00:00 2001 From: Dave dV Date: Mon, 9 Mar 2026 09:31:56 +0000 Subject: [PATCH] fix: omit unused components import in api-schemas.ts when no schemas found --- CHANGELOG.md | 6 ++++++ package-lock.json | 4 ++-- package.json | 2 +- src/cli.ts | 2 -- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ccb2714..e02d57c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.20.1] - 2026-03-09 + +### Fixed + +- `api-schemas.ts` no longer emits `import type { components }` when there are no schemas, eliminating a spurious unused-import lint warning + ## [0.20.0] - 2026-03-05 ### Fixed diff --git a/package-lock.json b/package-lock.json index 46ad9fd..89b19c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@qualisero/openapi-endpoint", - "version": "0.20.0", + "version": "0.20.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@qualisero/openapi-endpoint", - "version": "0.20.0", + "version": "0.20.1", "license": "MIT", "bin": { "openapi-codegen": "bin/openapi-codegen.js" diff --git a/package.json b/package.json index a671467..be8d4f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@qualisero/openapi-endpoint", - "version": "0.20.0", + "version": "0.20.1", "repository": { "type": "git", "url": "https://github.com/qualisero/openapi-endpoint.git" diff --git a/src/cli.ts b/src/cli.ts index f78a494..6b370e8 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -887,8 +887,6 @@ function generateApiSchemasContent(openApiSpec: OpenAPISpec): string { return `// Auto-generated from OpenAPI specification // Do not edit this file manually -import type { components } from './openapi-types' - // No schemas found in the OpenAPI specification ` }