openapi-typescript
Advanced tools
Comparing version 6.4.1 to 6.4.2
# openapi-typescript | ||
## 6.4.2 | ||
### Patch Changes | ||
- [#1278](https://github.com/drwpow/openapi-typescript/pull/1278) [`d7420e3`](https://github.com/drwpow/openapi-typescript/commit/d7420e30f1697ad8cfc0fdefc93127ad2b813f99) Thanks [@pvanagtmaal](https://github.com/pvanagtmaal)! - Fix externalizing external refs | ||
## 6.4.1 | ||
@@ -4,0 +10,0 @@ |
@@ -210,3 +210,3 @@ import fs from "node:fs"; | ||
if (ref.filename === ".") { | ||
if (subschemaID === ".") { | ||
if (subschemaID === "." || ref.path[0] === "external") { | ||
node.$ref = makeTSIndex(ref.path); | ||
@@ -213,0 +213,0 @@ } |
{ | ||
"name": "openapi-typescript", | ||
"description": "Generate TypeScript types from Swagger OpenAPI specs", | ||
"version": "6.4.1", | ||
"version": "6.4.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Drew Powers", |
@@ -267,3 +267,3 @@ import type { ComponentsObject, Fetch, GlobalContext, OpenAPI3, OperationObject, ParameterObject, PathItemObject, ReferenceObject, RequestBodyObject, ResponseObject, SchemaObject, Subschema } from "./types.js"; | ||
if (ref.filename === ".") { | ||
if (subschemaID === ".") { | ||
if (subschemaID === "." || ref.path[0] === "external") { | ||
node.$ref = makeTSIndex(ref.path); | ||
@@ -270,0 +270,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
395036