openapi-typescript
Advanced tools
Comparing version
# openapi-typescript | ||
## 6.5.4 | ||
### Patch Changes | ||
- [#1324](https://github.com/drwpow/openapi-typescript/pull/1324) [`0357325`](https://github.com/drwpow/openapi-typescript/commit/0357325ae136cbdd9c9891ebb7f5414e3ad8bfec) Thanks [@drwpow](https://github.com/drwpow)! - Fix accidental quote appearing in components/responses with $refs | ||
## 6.5.3 | ||
@@ -4,0 +10,0 @@ |
@@ -31,3 +31,3 @@ import { escObjKey, getEntries, getSchemaObjectComment, indent, tsOptionalProperty, tsReadonly } from "../utils.js"; | ||
if ("$ref" in responseObject) { | ||
output.push(indent(`${key}": ${transformSchemaObject(responseObject, { path: `#/components/responses/${name}`, ctx })};`, indentLv)); | ||
output.push(indent(`${key}: ${transformSchemaObject(responseObject, { path: `#/components/responses/${name}`, ctx })};`, indentLv)); | ||
} | ||
@@ -34,0 +34,0 @@ else { |
{ | ||
"name": "openapi-typescript", | ||
"description": "Generate runtime-free TypeScript types from Swagger OpenAPI specs", | ||
"version": "6.5.3", | ||
"version": "6.5.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Drew Powers", |
@@ -34,3 +34,3 @@ import type { ComponentsObject, GlobalContext } from "../types.js"; | ||
if ("$ref" in responseObject) { | ||
output.push(indent(`${key}": ${transformSchemaObject(responseObject, { path: `#/components/responses/${name}`, ctx })};`, indentLv)); | ||
output.push(indent(`${key}: ${transformSchemaObject(responseObject, { path: `#/components/responses/${name}`, ctx })};`, indentLv)); | ||
} else { | ||
@@ -37,0 +37,0 @@ const responseType = transformResponseObject(responseObject, { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
409101
0.08%