@depup/openapi-typescript 7.13.0-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/CHANGELOG.md +1162 -0
  2. package/CONTRIBUTING.md +149 -0
  3. package/LICENSE +21 -0
  4. package/README.md +32 -0
  5. package/bin/cli.js +297 -0
  6. package/changes.json +14 -0
  7. package/dist/index.cjs +152 -0
  8. package/dist/index.cjs.map +1 -0
  9. package/dist/index.d.cts +517 -0
  10. package/dist/index.d.mts +515 -0
  11. package/dist/index.d.ts +517 -0
  12. package/dist/index.mjs +85 -0
  13. package/dist/index.mjs.map +1 -0
  14. package/dist/lib/redoc.cjs +129 -0
  15. package/dist/lib/redoc.cjs.map +1 -0
  16. package/dist/lib/redoc.mjs +122 -0
  17. package/dist/lib/redoc.mjs.map +1 -0
  18. package/dist/lib/ts.cjs +470 -0
  19. package/dist/lib/ts.cjs.map +1 -0
  20. package/dist/lib/ts.mjs +431 -0
  21. package/dist/lib/ts.mjs.map +1 -0
  22. package/dist/lib/utils.cjs +295 -0
  23. package/dist/lib/utils.cjs.map +1 -0
  24. package/dist/lib/utils.mjs +278 -0
  25. package/dist/lib/utils.mjs.map +1 -0
  26. package/dist/transform/components-object.cjs +150 -0
  27. package/dist/transform/components-object.cjs.map +1 -0
  28. package/dist/transform/components-object.mjs +127 -0
  29. package/dist/transform/components-object.mjs.map +1 -0
  30. package/dist/transform/header-object.cjs +48 -0
  31. package/dist/transform/header-object.cjs.map +1 -0
  32. package/dist/transform/header-object.mjs +42 -0
  33. package/dist/transform/header-object.mjs.map +1 -0
  34. package/dist/transform/index.cjs +124 -0
  35. package/dist/transform/index.cjs.map +1 -0
  36. package/dist/transform/index.mjs +118 -0
  37. package/dist/transform/index.mjs.map +1 -0
  38. package/dist/transform/media-type-object.cjs +14 -0
  39. package/dist/transform/media-type-object.cjs.map +1 -0
  40. package/dist/transform/media-type-object.mjs +12 -0
  41. package/dist/transform/media-type-object.mjs.map +1 -0
  42. package/dist/transform/operation-object.cjs +105 -0
  43. package/dist/transform/operation-object.cjs.map +1 -0
  44. package/dist/transform/operation-object.mjs +96 -0
  45. package/dist/transform/operation-object.mjs.map +1 -0
  46. package/dist/transform/parameter-object.cjs +11 -0
  47. package/dist/transform/parameter-object.cjs.map +1 -0
  48. package/dist/transform/parameter-object.mjs +9 -0
  49. package/dist/transform/parameter-object.mjs.map +1 -0
  50. package/dist/transform/parameters-array.cjs +120 -0
  51. package/dist/transform/parameters-array.cjs.map +1 -0
  52. package/dist/transform/parameters-array.mjs +114 -0
  53. package/dist/transform/parameters-array.mjs.map +1 -0
  54. package/dist/transform/path-item-object.cjs +84 -0
  55. package/dist/transform/path-item-object.cjs.map +1 -0
  56. package/dist/transform/path-item-object.mjs +78 -0
  57. package/dist/transform/path-item-object.mjs.map +1 -0
  58. package/dist/transform/paths-enum.cjs +35 -0
  59. package/dist/transform/paths-enum.cjs.map +1 -0
  60. package/dist/transform/paths-enum.mjs +33 -0
  61. package/dist/transform/paths-enum.mjs.map +1 -0
  62. package/dist/transform/paths-object.cjs +134 -0
  63. package/dist/transform/paths-object.cjs.map +1 -0
  64. package/dist/transform/paths-object.mjs +128 -0
  65. package/dist/transform/paths-object.mjs.map +1 -0
  66. package/dist/transform/request-body-object.cjs +68 -0
  67. package/dist/transform/request-body-object.cjs.map +1 -0
  68. package/dist/transform/request-body-object.mjs +62 -0
  69. package/dist/transform/request-body-object.mjs.map +1 -0
  70. package/dist/transform/response-object.cjs +123 -0
  71. package/dist/transform/response-object.cjs.map +1 -0
  72. package/dist/transform/response-object.mjs +117 -0
  73. package/dist/transform/response-object.mjs.map +1 -0
  74. package/dist/transform/responses-object.cjs +36 -0
  75. package/dist/transform/responses-object.cjs.map +1 -0
  76. package/dist/transform/responses-object.mjs +30 -0
  77. package/dist/transform/responses-object.mjs.map +1 -0
  78. package/dist/transform/schema-object.cjs +502 -0
  79. package/dist/transform/schema-object.cjs.map +1 -0
  80. package/dist/transform/schema-object.mjs +493 -0
  81. package/dist/transform/schema-object.mjs.map +1 -0
  82. package/dist/transform/webhooks-object.cjs +37 -0
  83. package/dist/transform/webhooks-object.cjs.map +1 -0
  84. package/dist/transform/webhooks-object.mjs +31 -0
  85. package/dist/transform/webhooks-object.mjs.map +1 -0
  86. package/package.json +102 -0
  87. package/src/index.ts +108 -0
  88. package/src/lib/redoc.ts +164 -0
  89. package/src/lib/ts.ts +616 -0
  90. package/src/lib/utils.ts +394 -0
  91. package/src/transform/components-object.ts +161 -0
  92. package/src/transform/header-object.ts +45 -0
  93. package/src/transform/index.ts +116 -0
  94. package/src/transform/media-type-object.ts +18 -0
  95. package/src/transform/operation-object.ts +104 -0
  96. package/src/transform/parameter-object.ts +15 -0
  97. package/src/transform/parameters-array.ts +129 -0
  98. package/src/transform/path-item-object.ts +102 -0
  99. package/src/transform/paths-enum.ts +43 -0
  100. package/src/transform/paths-object.ts +134 -0
  101. package/src/transform/request-body-object.ts +59 -0
  102. package/src/transform/response-object.ts +112 -0
  103. package/src/transform/responses-object.ts +36 -0
  104. package/src/transform/schema-object.ts +737 -0
  105. package/src/transform/webhooks-object.ts +27 -0
  106. package/src/types.ts +735 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,1162 @@
1
+ # openapi-typescript
2
+
3
+ ## 7.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2549](https://github.com/openapi-ts/openapi-typescript/pull/2549) [`a690e52`](https://github.com/openapi-ts/openapi-typescript/commit/a690e526b7693479bc2f2f002d71a020fa5e4e16) Thanks [@abumalick](https://github.com/abumalick)! - Add readOnly/writeOnly support via `--read-write-markers` flag. When enabled, readOnly properties are wrapped with `$Read<T>` and writeOnly properties with `$Write<T>`. openapi-fetch uses `Readable<T>` and `Writable<T>` helpers to exclude these properties from responses and request bodies respectively.
8
+
9
+ ## 7.12.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#2524](https://github.com/openapi-ts/openapi-typescript/pull/2524) [`697f7fe`](https://github.com/openapi-ts/openapi-typescript/commit/697f7fe8bf3f23bfa36cb29c093a359b562a377e) Thanks [@gunnarvelle](https://github.com/gunnarvelle)! - Added flag to keep casing for exported root types
14
+
15
+ ### Patch Changes
16
+
17
+ - [#2536](https://github.com/openapi-ts/openapi-typescript/pull/2536) [`e3c05a4`](https://github.com/openapi-ts/openapi-typescript/commit/e3c05a40752b02fcabe63fda88d7e0afae00ab6d) Thanks [@darkbasic](https://github.com/darkbasic)! - Fix `enumValues: true` output for schemas that use `oneOf`/`anyOf` unions by narrowing union types with `Extract<>` before accessing variant-specific properties. This prevents invalid type paths when an accessed property only exists on some union members.
18
+
19
+ ## 7.11.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [#2433](https://github.com/openapi-ts/openapi-typescript/pull/2433) [`27c9370`](https://github.com/openapi-ts/openapi-typescript/commit/27c9370911b50a981d146fa5c561b90d66dd2c0d) Thanks [@danitt](https://github.com/danitt)! - Conditionally generate TS enums
24
+
25
+ ## 7.10.2
26
+
27
+ ### Patch Changes
28
+
29
+ - [#2139](https://github.com/openapi-ts/openapi-typescript/pull/2139) [`12f9c29`](https://github.com/openapi-ts/openapi-typescript/commit/12f9c29b7653db3ab5d6beb4ac698ce5b58177aa) Thanks [@darkbasic](https://github.com/darkbasic)! - All kinds of enum related fixes (enums in arrays, in optional props, in unions, in request body, with record types...)
30
+
31
+ - [#2548](https://github.com/openapi-ts/openapi-typescript/pull/2548) [`4385590`](https://github.com/openapi-ts/openapi-typescript/commit/438559038baa931144768f186e8825f9e84cdb85) Thanks [@mynnx](https://github.com/mynnx)! - Fixes the `--redocly` flag so that it no longer hangs and is able to lookup the Redocly file at a custom path
32
+
33
+ ## 7.10.1
34
+
35
+ ### Patch Changes
36
+
37
+ - [#2480](https://github.com/openapi-ts/openapi-typescript/pull/2480) [`e04dc65`](https://github.com/openapi-ts/openapi-typescript/commit/e04dc65817a91eb7ceaea1992f0e674e5d885bb2) Thanks [@MatissJanis](https://github.com/MatissJanis)! - Fix multi-line jsdoc comments
38
+
39
+ ## 7.10.0
40
+
41
+ ### Minor Changes
42
+
43
+ - [#2449](https://github.com/openapi-ts/openapi-typescript/pull/2449) [`bdd5ddb`](https://github.com/openapi-ts/openapi-typescript/commit/bdd5ddb7d5f8463bd0515f0b2d5c98a8a394dabf) Thanks [@kristianjf](https://github.com/kristianjf)! - Add transformProperty hook for property signature modification
44
+
45
+ - [#2288](https://github.com/openapi-ts/openapi-typescript/pull/2288) [`0f22be2`](https://github.com/openapi-ts/openapi-typescript/commit/0f22be218f0c8050a96f35a6a271b959b2c5a23f) Thanks [@hontas](https://github.com/hontas)! - Add support for patternProperties
46
+
47
+ ## 7.9.1
48
+
49
+ ### Patch Changes
50
+
51
+ - [#2393](https://github.com/openapi-ts/openapi-typescript/pull/2393) [`6943ccf`](https://github.com/openapi-ts/openapi-typescript/commit/6943ccf216f602f004eb178dd652ffcbafc05346) Thanks [@simon-curtis](https://github.com/simon-curtis)! - Now checking for null & empty string when generating enum description
52
+
53
+ - [#2375](https://github.com/openapi-ts/openapi-typescript/pull/2375) [`5be22d7`](https://github.com/openapi-ts/openapi-typescript/commit/5be22d7adc8bc36fdfa91f1aa3473919107060f2) Thanks [@ParkerVR](https://github.com/ParkerVR)! - Fix behavior when using enum and export-type flags
54
+
55
+ ## 7.9.0
56
+
57
+ ### Minor Changes
58
+
59
+ - [#2374](https://github.com/openapi-ts/openapi-typescript/pull/2374) [`c5ebbb8`](https://github.com/openapi-ts/openapi-typescript/commit/c5ebbb8d5a0945c2360a2a147a3256d7e8585020) Thanks [@cmlee-accelins](https://github.com/cmlee-accelins)! - Add JSDoc support for the recommended examples array on JSON Schema objects.
60
+
61
+ ## 7.8.0
62
+
63
+ ### Minor Changes
64
+
65
+ - [#2310](https://github.com/openapi-ts/openapi-typescript/pull/2310) [`e66b5ce`](https://github.com/openapi-ts/openapi-typescript/commit/e66b5ce63bfcdc57c6ee942e5ed4e7667e64c290) Thanks [@drwpow](https://github.com/drwpow)! - Build package with unbuild to improve CJS support
66
+
67
+ ## 7.7.3
68
+
69
+ ### Patch Changes
70
+
71
+ - [#2185](https://github.com/openapi-ts/openapi-typescript/pull/2185) [`67889ba`](https://github.com/openapi-ts/openapi-typescript/commit/67889baf7832188f6589e0fb2e3d31a2e6ede257) Thanks [@duncanbeevers](https://github.com/duncanbeevers)! - Fix invalid $ref index into path
72
+
73
+ ## 7.7.2
74
+
75
+ ### Patch Changes
76
+
77
+ - [#2145](https://github.com/openapi-ts/openapi-typescript/pull/2145) [`d79efae`](https://github.com/openapi-ts/openapi-typescript/commit/d79efaea3385d2421d3d295f69d7036cddb106b5) Thanks [@luhn](https://github.com/luhn)! - Don't remove `null` type if a default is present.
78
+
79
+ ## 7.7.1
80
+
81
+ ### Patch Changes
82
+
83
+ - [#2260](https://github.com/openapi-ts/openapi-typescript/pull/2260) [`7205e12`](https://github.com/openapi-ts/openapi-typescript/commit/7205e12e07e5fd36a6bb3be44ea911f57bbbeb60) Thanks [@zrosenbauer](https://github.com/zrosenbauer)! - Prevents a `TypeError` due to a bad in operator for `type: "array"` when a `boolean` is set on `items`
84
+
85
+ ## 7.7.0
86
+
87
+ ### Minor Changes
88
+
89
+ - [#2249](https://github.com/openapi-ts/openapi-typescript/pull/2249) [`7f3f7b6`](https://github.com/openapi-ts/openapi-typescript/commit/7f3f7b65da5ef8caf5304486184118352665eb3f) Thanks [@gzm0](https://github.com/gzm0)! - Add jsdoc comments to response object
90
+
91
+ ### Patch Changes
92
+
93
+ - [#2199](https://github.com/openapi-ts/openapi-typescript/pull/2199) [`fc3f7f8`](https://github.com/openapi-ts/openapi-typescript/commit/fc3f7f8b9cf52f0d4daf31ed4579d588c5b0f3e6) Thanks [@StefanTerdell](https://github.com/StefanTerdell)! - Fix boolean object property schemas
94
+
95
+ - [#2152](https://github.com/openapi-ts/openapi-typescript/pull/2152) [`47e4b5e`](https://github.com/openapi-ts/openapi-typescript/commit/47e4b5eb86adc59e3de2a4179741d35a26db61c0) Thanks [@insertmike](https://github.com/insertmike)! - - Fixed --make-paths-enum option transforming the paths URL (`:id` instead of `{id}`)
96
+
97
+ - [#2241](https://github.com/openapi-ts/openapi-typescript/pull/2241) [`ef23947`](https://github.com/openapi-ts/openapi-typescript/commit/ef239479b5f15fc4c98dd15c72974d4cb8722fb0) Thanks [@stanleyk](https://github.com/stanleyk)! - Replacing `any` with `unknown` in the `ReadonlyArray` type declaration.
98
+
99
+ ## 7.6.1
100
+
101
+ ### Patch Changes
102
+
103
+ - [#2131](https://github.com/openapi-ts/openapi-typescript/pull/2131) [`41bed98`](https://github.com/openapi-ts/openapi-typescript/commit/41bed98f2ff6b41f4f4759724af2d9582f8c4449) Thanks [@htunnicliff](https://github.com/htunnicliff)! - Update @redocly/openapi-core to fix punycode deprecation bug
104
+
105
+ ## 7.6.0
106
+
107
+ ### Minor Changes
108
+
109
+ - [#2102](https://github.com/openapi-ts/openapi-typescript/pull/2102) [`0cdfc47`](https://github.com/openapi-ts/openapi-typescript/commit/0cdfc479b981c26ead188f8883b856c0c8e3c841) Thanks [@ViktorPontinen](https://github.com/ViktorPontinen)! - Support generating path params for flaky schemas using --generate-path-params option
110
+
111
+ ## 7.5.2
112
+
113
+ ### Patch Changes
114
+
115
+ - [#2085](https://github.com/openapi-ts/openapi-typescript/pull/2085) [`2bffe2a`](https://github.com/openapi-ts/openapi-typescript/commit/2bffe2a652864a54c8dc969327e4a8eb4081eb25) Thanks [@drwpow](https://github.com/drwpow)! - Update @redocly/openapi-core to 1.27.0
116
+
117
+ ## 7.5.1
118
+
119
+ ### Patch Changes
120
+
121
+ - [#2049](https://github.com/openapi-ts/openapi-typescript/pull/2049) [`39f9b2f`](https://github.com/openapi-ts/openapi-typescript/commit/39f9b2fb913eb13817592b22f1bbe35de1bc4c33) Thanks [@duncanbeevers](https://github.com/duncanbeevers)! - Add schema to postTransform options
122
+
123
+ ## 7.5.0
124
+
125
+ ### Minor Changes
126
+
127
+ - [#2052](https://github.com/openapi-ts/openapi-typescript/pull/2052) [`d2de5c7`](https://github.com/openapi-ts/openapi-typescript/commit/d2de5c7e596d1b427d6d5d629974627456623305) Thanks [@laurenz-glueck](https://github.com/laurenz-glueck)! - brings back --make-paths-enum option to generate ApiPaths enum
128
+
129
+ - [#2059](https://github.com/openapi-ts/openapi-typescript/pull/2059) [`9e4f61c`](https://github.com/openapi-ts/openapi-typescript/commit/9e4f61c530fe634051fa5c9b25e18a5f9ff1f76f) Thanks [@gduliscouet-ubitransport](https://github.com/gduliscouet-ubitransport)! - Allow all types except UNKNOWN to be nullable
130
+
131
+ ## 7.4.4
132
+
133
+ ### Patch Changes
134
+
135
+ - [#1999](https://github.com/openapi-ts/openapi-typescript/pull/1999) [`e2d8541`](https://github.com/openapi-ts/openapi-typescript/commit/e2d854131a1dc11d3b8e8513d3e0ce1f04ea1211) Thanks [@patzick](https://github.com/patzick)! - Improved error messages to contain locations.
136
+
137
+ ## 7.4.3
138
+
139
+ ### Patch Changes
140
+
141
+ - [#1982](https://github.com/openapi-ts/openapi-typescript/pull/1982) [`8d00218`](https://github.com/openapi-ts/openapi-typescript/commit/8d00218aaaa65bd175a2538f60cb508a1219a415) Thanks [@prewk](https://github.com/prewk)! - Make pathParamsAsTypes work with integer/boolean types
142
+
143
+ ## 7.4.2
144
+
145
+ ### Patch Changes
146
+
147
+ - [#1873](https://github.com/openapi-ts/openapi-typescript/pull/1873) [`c2c396d`](https://github.com/openapi-ts/openapi-typescript/commit/c2c396d8282692f3ac2df50656ebcd9e8615a685) Thanks [@DanDeMicco](https://github.com/DanDeMicco)! - Support for generating enums when enums definition has null value
148
+
149
+ ## 7.4.1
150
+
151
+ ### Patch Changes
152
+
153
+ - [#1917](https://github.com/openapi-ts/openapi-typescript/pull/1917) [`4a59124`](https://github.com/openapi-ts/openapi-typescript/commit/4a591248175f918369a9713dea0856b12dca16c3) Thanks [@drwpow](https://github.com/drwpow)! - Bump Redocly Core
154
+
155
+ ## 7.4.0
156
+
157
+ ### Minor Changes
158
+
159
+ - [#1876](https://github.com/openapi-ts/openapi-typescript/pull/1876) [`a9cd9aa`](https://github.com/openapi-ts/openapi-typescript/commit/a9cd9aa56dd9dec043a4e4fd85527acac227a142) Thanks [@BradHacker](https://github.com/BradHacker)! - Add option to export all root component types
160
+
161
+ ## 7.3.3
162
+
163
+ ### Patch Changes
164
+
165
+ - [#1877](https://github.com/openapi-ts/openapi-typescript/pull/1877) [`94592a4`](https://github.com/openapi-ts/openapi-typescript/commit/94592a494566255807a3fc9bc19369af86d7cb78) Thanks [@phk422](https://github.com/phk422)! - fix: replace special characters using `SPECIAL_CHARACTER_MAP` for duplicate-identifiers
166
+
167
+ ## 7.3.2
168
+
169
+ ### Patch Changes
170
+
171
+ - [#1867](https://github.com/openapi-ts/openapi-typescript/pull/1867) [`21fb8b0`](https://github.com/openapi-ts/openapi-typescript/commit/21fb8b0febbae1a12dd1bb43eb9130422629409e) Thanks [@phk422](https://github.com/phk422)! - fix(openapi-typescript): type errors generated under `enumValues`
172
+
173
+ ## 7.3.1
174
+
175
+ ### Patch Changes
176
+
177
+ - [#1849](https://github.com/openapi-ts/openapi-typescript/pull/1849) [`08bde72`](https://github.com/openapi-ts/openapi-typescript/commit/08bde72cfeed14ecc3a15251a2f77d0770382442) Thanks [@liangskyli](https://github.com/liangskyli)! - fix: keyedParameters use unique key
178
+
179
+ ## 7.3.0
180
+
181
+ ### Minor Changes
182
+
183
+ - [#1799](https://github.com/openapi-ts/openapi-typescript/pull/1799) [`9939b76`](https://github.com/openapi-ts/openapi-typescript/commit/9939b76f29b90baa868b8764a403dcb98fc2ca65) Thanks [@drwpow](https://github.com/drwpow)! - Don’t generate `| undefined` for additionalProperties
184
+
185
+ ## 7.2.0
186
+
187
+ ### Minor Changes
188
+
189
+ - [#1775](https://github.com/openapi-ts/openapi-typescript/pull/1775) [`b1bbe62`](https://github.com/openapi-ts/openapi-typescript/commit/b1bbe6295fad3a798fe3d8c5c9c1347ae17e268f) Thanks [@phk422](https://github.com/phk422)! - feat: add dedupeEnums option
190
+
191
+ ## 7.1.2
192
+
193
+ ### Patch Changes
194
+
195
+ - [#1717](https://github.com/openapi-ts/openapi-typescript/pull/1717) [`335530c`](https://github.com/openapi-ts/openapi-typescript/commit/335530c4f8f966d0154f19504585c462f5f5a409) Thanks [@kerwanp](https://github.com/kerwanp)! - Ignore configuration files in published package
196
+
197
+ ## 7.1.1
198
+
199
+ ### Patch Changes
200
+
201
+ - [#1784](https://github.com/openapi-ts/openapi-typescript/pull/1784) [`c2f8655`](https://github.com/openapi-ts/openapi-typescript/commit/c2f8655c0be5f8131d0ef115724fa4a443c44a8b) Thanks [@yoshi2no](https://github.com/yoshi2no)! - Fix: Correct handling of identical minItems and maxItems in array schemas when arrayLength option is true
202
+
203
+ ## 7.1.0
204
+
205
+ ### Minor Changes
206
+
207
+ - [#1766](https://github.com/openapi-ts/openapi-typescript/pull/1766) [`0ce35d7`](https://github.com/openapi-ts/openapi-typescript/commit/0ce35d7ca707b4bd8e2d794c002dcd158079864e) Thanks [@phk422](https://github.com/phk422)! - feat: Add the inject option
208
+
209
+ - [#1768](https://github.com/openapi-ts/openapi-typescript/pull/1768) [`285b097`](https://github.com/openapi-ts/openapi-typescript/commit/285b0970a6d32406bb67677860e2dcbb3d7ad993) Thanks [@phk422](https://github.com/phk422)! - feat: Add check option
210
+
211
+ ### Patch Changes
212
+
213
+ - [#1772](https://github.com/openapi-ts/openapi-typescript/pull/1772) [`41cb9a2`](https://github.com/openapi-ts/openapi-typescript/commit/41cb9a232127e5ae421b1853506b75f718683c3d) Thanks [@ashwin153](https://github.com/ashwin153)! - fix: add explicit import of performance to fix bazel compatibility issues
214
+
215
+ - [#1764](https://github.com/openapi-ts/openapi-typescript/pull/1764) [`2793049`](https://github.com/openapi-ts/openapi-typescript/commit/2793049b1102d9e3ae6ec0f933794993a228c745) Thanks [@michalfedyna](https://github.com/michalfedyna)! - Fix --properties-required-by-default flag not working
216
+
217
+ - [#1763](https://github.com/openapi-ts/openapi-typescript/pull/1763) [`19b9383`](https://github.com/openapi-ts/openapi-typescript/commit/19b9383de63b6aa6a9c71cdd8741a0de6f206a55) Thanks [@nkt](https://github.com/nkt)! - fix: schema.content might be omitted
218
+
219
+ ## 7.0.4
220
+
221
+ ### Patch Changes
222
+
223
+ - [#1746](https://github.com/openapi-ts/openapi-typescript/pull/1746) [`e705909`](https://github.com/openapi-ts/openapi-typescript/commit/e705909f2b15d8b207be4be22f329e29e5f6444b) Thanks [@phk422](https://github.com/phk422)! - fix: Correct handling of default parameter values in referenced component schema
224
+
225
+ ## 7.0.3
226
+
227
+ ### Patch Changes
228
+
229
+ - [#1761](https://github.com/openapi-ts/openapi-typescript/pull/1761) [`8043c5d`](https://github.com/openapi-ts/openapi-typescript/commit/8043c5d27d3abf9df1a3e9cf031531a52921a122) Thanks [@yoshi2no](https://github.com/yoshi2no)! - fix: Enum option cannot generate enums if values are not valid property names
230
+
231
+ ## 7.0.2
232
+
233
+ ### Patch Changes
234
+
235
+ - [#1743](https://github.com/openapi-ts/openapi-typescript/pull/1743) [`8f6ec20`](https://github.com/openapi-ts/openapi-typescript/commit/8f6ec20d5d26396c1745690f0e42675776e1a691) Thanks [@avaly](https://github.com/avaly)! - Generate valid types for referenced nested properties
236
+
237
+ ## 7.0.1
238
+
239
+ ### Patch Changes
240
+
241
+ - [#1724](https://github.com/openapi-ts/openapi-typescript/pull/1724) [`f47268f`](https://github.com/openapi-ts/openapi-typescript/commit/f47268f38b542b0adf61861efe3fdbf63d0a37f1) Thanks [@simensol](https://github.com/simensol)! - Make sure result is an object before using the in operator.
242
+
243
+ ## 7.0.0
244
+
245
+ ### Major Changes
246
+
247
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ **Breaking**: The Node.js API now returns the TypeScript AST for the main method as well as `transform()` and `postTransform()`. To migrate, you’ll have to use the `typescript` compiler API:
248
+
249
+ ```diff
250
+ + import ts from "typescript";
251
+
252
+ + const DATE = ts.factory.createIdentifier("Date");
253
+ + const NULL = ts.factory.createLiteralTypeNode(ts.factory.createNull());
254
+
255
+ const ast = await openapiTS(mySchema, {
256
+ transform(schemaObject, metadata) {
257
+ if (schemaObject.format === "date-time") {
258
+ - return schemaObject.nullable ? "Date | null" : "Date";
259
+ + return schemaObject.nullable
260
+ + ? ts.factory.createUnionTypeNode([DATE, NULL])
261
+ + : DATE;
262
+ }
263
+ },
264
+ };
265
+ ```
266
+
267
+ Though it’s more verbose, it’s also more powerful, as now you have access to additional properties of the generated code you didn’t before (such as injecting comments).
268
+
269
+ For example syntax, search this codebae to see how the TypeScript AST is used.
270
+
271
+ Also see [AST Explorer](https://astexplorer.net/)’s `typescript` parser to inspect how TypeScript is interpreted as an AST.
272
+
273
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ **Breaking**: Changing of several CLI flags and Node.js API options
274
+ - The `--auth`, `--httpHeaders`, `--httpMethod`, and `fetch` (Node.js-only) options were all removed from the CLI and Node.js API
275
+ - To migrate, you’ll need to create a [redocly.yaml config](https://redocly.com/docs/cli/configuration/) that specifies your auth options [in the http setting](https://redocly.com/docs/cli/configuration/#resolve-non-public-or-non-remote-urls)
276
+ - You can also set your fetch client in redocly.yaml as well.
277
+ - `--immutable-types` has been renamed to `--immutable`
278
+ - `--support-array-length` has been renamed to `--array-length`
279
+
280
+ - [`fbaf96d`](https://github.com/openapi-ts/openapi-typescript/commit/fbaf96d33181a2fabd3d4748e54c0f111ed6756e) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ **Breaking**: Remove globbing schemas in favor of `redocly.yaml` config. Specify multiple schemas with outputs in there instead. See [Multiple schemas](https://openapi-ts.dev/docs/cli/#multiple-schemas) for more info.
281
+
282
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ **Breaking**: Most optional objects are now always present in types, just typed as `:never`. This includes keys of the Components Object as well as HTTP methods.
283
+
284
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ **Breaking**: No more `external` export in schemas anymore. Everything gets flattened into the `components` object instead (if referencing a schema object from a remote partial, note it may have had a minor name change to avoid conflict).
285
+
286
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ **Breaking** `defaultNonNullable` option now defaults to `true`. You’ll now need to manually set `false` to return to old behavior.
287
+
288
+ - [`799194d `](https://github.com/openapi-ts/openapi-typescript/commit/799194d98c3934570c6500d986496eee17b79309) Thanks [@drwpow](https://github.com/drwpow)~ - ⚠️ **Breaking** TypeScript is now a peerDependency and must be installed alongside `openapi-typescript`
289
+
290
+ ### Minor Changes
291
+
292
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ✨ **Feature**: automatically validate schemas with Redocly CLI ([docs](https://redocly.com/docs/cli/)). No more need for external tools to report errors! 🎉
293
+ - By default, it will only throw on actual schema errors (uses Redocly’s default settings)
294
+ - For stricter linting or custom rules, you can create a [redocly.yaml config](https://redocly.com/docs/cli/configuration/)
295
+
296
+ - [`312b7ba`](https://github.com/openapi-ts/openapi-typescript/commit/312b7ba03fc0334153d4eeb51d6159f3fc63934e) Thanks [@drwpow](https://github.com/drwpow)! - ✨ **Feature:** allow configuration of schemas via `apis` key in redocly.config.yaml. [See docs](https://openapi-ts.dev/cli/) for more info.
297
+ - Any options passed into your [redocly.yaml config](https://redocly.com/docs/cli/configuration/) are respected
298
+
299
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ✨ **Feature**: add `enum` option to export top-level enums from schemas
300
+
301
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ✨ **Feature**: add `formatOptions` to allow formatting TS output
302
+
303
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ✨ **Feature**: header responses add `[key: string]: unknown` index type to allow for additional untyped headers
304
+
305
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ✨ **Feature**: bundle schemas with Redocly CLI
306
+
307
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - ✨ **Feature**: Added debugger that lets you profile performance and see more in-depth messages
308
+
309
+ - [#1374](https://github.com/openapi-ts/openapi-typescript/pull/1374) [`7ac5174`](https://github.com/openapi-ts/openapi-typescript/commit/7ac5174a1f767c1103573543bb17622ac8d25fe4) Thanks [@ElForastero](https://github.com/ElForastero)! - Add support for x-enum-varnames and x-enum-descriptions
310
+
311
+ - [#1545](https://github.com/openapi-ts/openapi-typescript/pull/1545) [`9158b81`](https://github.com/openapi-ts/openapi-typescript/commit/9158b81e8fdd45491afde8e291a786d7b2abc154) Thanks [@jaredLunde](https://github.com/openapi-ts/openapi-typescript/commits?author=jaredLunde)! - Replace # characters in operation IDs with a slash
312
+
313
+ ### Patch Changes
314
+
315
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - Refactor internals to use TypeScript AST rather than string mashing
316
+
317
+ - [`6d1eb32`](https://github.com/openapi-ts/openapi-typescript/commit/6d1eb32e610cb62effbd1a817ae8fc93337126a6) Thanks [@drwpow](https://github.com/drwpow)! - 🧹 Cleaned up and reorganized all tests
318
+
319
+ - [#1602](https://github.com/openapi-ts/openapi-typescript/pull/1602) [`9da96cd`](https://github.com/openapi-ts/openapi-typescript/commit/9da96cda4eb8f959c4703637d8fc89e1d3532af1) Thanks [@JeanRemiDelteil](https://github.com/JeanRemiDelteil)! - Do not add readonly on Typescript enum when the --immutable option is used.
320
+
321
+ ## 6.7.0
322
+
323
+ ### Minor Changes
324
+
325
+ - [#1355](https://github.com/openapi-ts/openapi-typescript/pull/1355) [`7568941`](https://github.com/openapi-ts/openapi-typescript/commit/7568941fb378a9b94c96754553a720093645dd64) Thanks [@drwpow](https://github.com/drwpow)! - Revert optional parameters breaking change (v6.6.0, #1335)
326
+
327
+ ## 6.6.2
328
+
329
+ ### Patch Changes
330
+
331
+ - [#1348](https://github.com/openapi-ts/openapi-typescript/pull/1348) [`f6fdd2f`](https://github.com/openapi-ts/openapi-typescript/commit/f6fdd2f59d035fec22f7fee27136939faae4628b) Thanks [@drwpow](https://github.com/drwpow)! - Improve YAML vs JSON parsing
332
+
333
+ - [#1352](https://github.com/openapi-ts/openapi-typescript/pull/1352) [`33b2c4f`](https://github.com/openapi-ts/openapi-typescript/commit/33b2c4f6d9f8d2a1bd42b13b3c8c168ed86609d6) Thanks [@drwpow](https://github.com/drwpow)! - Fix all parameters optional
334
+
335
+ - [#1345](https://github.com/openapi-ts/openapi-typescript/pull/1345) [`6f078c1`](https://github.com/openapi-ts/openapi-typescript/commit/6f078c1eb008a278858e6764e92af6ceb39922b4) Thanks [@SchabaJo](https://github.com/SchabaJo)! - Mirror directory structure of input files if output is a directory to prevent overwriting the same file again and again.
336
+
337
+ ## 6.6.1
338
+
339
+ ### Patch Changes
340
+
341
+ - [#1342](https://github.com/openapi-ts/openapi-typescript/pull/1342) [`c17669d`](https://github.com/openapi-ts/openapi-typescript/commit/c17669dbee47af49136bea3c40e12009e92cd81b) Thanks [@drwpow](https://github.com/drwpow)! - Fix discriminator propertyName inference
342
+
343
+ ## 6.6.0
344
+
345
+ ### Minor Changes
346
+
347
+ - [#1335](https://github.com/openapi-ts/openapi-typescript/pull/1335) [`7cb02ac`](https://github.com/openapi-ts/openapi-typescript/commit/7cb02acbcf57946b8202b9598a888454f09f81fa) Thanks [@duncanbeevers](https://github.com/duncanbeevers)! - Request parameters member is optional when all parameters are optional.
348
+
349
+ ## 6.5.5
350
+
351
+ ### Patch Changes
352
+
353
+ - [#1332](https://github.com/openapi-ts/openapi-typescript/pull/1332) [`8e8ebfd`](https://github.com/openapi-ts/openapi-typescript/commit/8e8ebfdcd84ff6a3d7b6f5d00695fc11366b436e) Thanks [@drwpow](https://github.com/drwpow)! - Restore original .d.ts module-resolution behavior
354
+
355
+ ## 6.5.4
356
+
357
+ ### Patch Changes
358
+
359
+ - [#1324](https://github.com/openapi-ts/openapi-typescript/pull/1324) [`0357325`](https://github.com/openapi-ts/openapi-typescript/commit/0357325ae136cbdd9c9891ebb7f5414e3ad8bfec) Thanks [@drwpow](https://github.com/drwpow)! - Fix accidental quote appearing in components/responses with $refs
360
+
361
+ ## 6.5.3
362
+
363
+ ### Patch Changes
364
+
365
+ - [#1320](https://github.com/openapi-ts/openapi-typescript/pull/1320) [`3cf78b9`](https://github.com/openapi-ts/openapi-typescript/commit/3cf78b920ab23624c0524e0d58338ee66acad799) Thanks [@duncanbeevers](https://github.com/duncanbeevers)! - Wrap nested readonly types in parentheses, allowing for nested immutable arrays
366
+
367
+ ## 6.5.2
368
+
369
+ ### Patch Changes
370
+
371
+ - [#1317](https://github.com/openapi-ts/openapi-typescript/pull/1317) [`5e054db`](https://github.com/openapi-ts/openapi-typescript/commit/5e054dbc0984198c7f89e29b6f38e9d60790cafb) Thanks [@drwpow](https://github.com/drwpow)! - Fix JSONSchema $defs
372
+
373
+ - [#1317](https://github.com/openapi-ts/openapi-typescript/pull/1317) [`5e054db`](https://github.com/openapi-ts/openapi-typescript/commit/5e054dbc0984198c7f89e29b6f38e9d60790cafb) Thanks [@drwpow](https://github.com/drwpow)! - Improve remote $ref parsing
374
+
375
+ ## 6.5.1
376
+
377
+ ### Patch Changes
378
+
379
+ - [#1308](https://github.com/openapi-ts/openapi-typescript/pull/1308) [`ebb73b6`](https://github.com/openapi-ts/openapi-typescript/commit/ebb73b68c3a2f9a8c8193888735f9c0b7855722f) Thanks [@drwpow](https://github.com/drwpow)! - Fix bugs with remote $refs, add `cwd` option for JSON schema parsing
380
+
381
+ ## 6.5.0
382
+
383
+ ### Minor Changes
384
+
385
+ - [#1295](https://github.com/openapi-ts/openapi-typescript/pull/1295) [`99a1648`](https://github.com/openapi-ts/openapi-typescript/commit/99a1648affd5731c2d303619f050fee2ed834eef) Thanks [@pvanagtmaal](https://github.com/pvanagtmaal)! - Avoid adding a undefined union to additionProperties
386
+
387
+ ## 6.4.5
388
+
389
+ ### Patch Changes
390
+
391
+ - [#1280](https://github.com/openapi-ts/openapi-typescript/pull/1280) [`50441d0`](https://github.com/openapi-ts/openapi-typescript/commit/50441d048b8724d1ec31d20a1583c8748b7ddc99) Thanks [@pvanagtmaal](https://github.com/pvanagtmaal)! - Fix invalid typescript for empty request bodies, fix headers being left out when response body is omitted
392
+
393
+ - [#1289](https://github.com/openapi-ts/openapi-typescript/pull/1289) [`7f452fa`](https://github.com/openapi-ts/openapi-typescript/commit/7f452fa00044c7191c2721b6691178158f97940f) Thanks [@adamschoenemann](https://github.com/adamschoenemann)! - Fixed a bug where references to types with discriminators with implicit mappings would generate incorrect types
394
+
395
+ ## 6.4.4
396
+
397
+ ### Patch Changes
398
+
399
+ - [#1281](https://github.com/openapi-ts/openapi-typescript/pull/1281) [`ebd31ff`](https://github.com/openapi-ts/openapi-typescript/commit/ebd31ff3d143dbe8e4d91a4ba18b110ff6656dd0) Thanks [@pvanagtmaal](https://github.com/pvanagtmaal)! - Refactor CLI path handling, fixing several bugs
400
+
401
+ ## 6.4.3
402
+
403
+ ### Patch Changes
404
+
405
+ - [#1287](https://github.com/openapi-ts/openapi-typescript/pull/1287) [`8a9d8ed`](https://github.com/openapi-ts/openapi-typescript/commit/8a9d8ede95802370c4015846a4856fd0701ada33) Thanks [@drwpow](https://github.com/drwpow)! - Fix oneOf handling with empty object parent type
406
+
407
+ ## 6.4.2
408
+
409
+ ### Patch Changes
410
+
411
+ - [#1278](https://github.com/openapi-ts/openapi-typescript/pull/1278) [`d7420e3`](https://github.com/openapi-ts/openapi-typescript/commit/d7420e30f1697ad8cfc0fdefc93127ad2b813f99) Thanks [@pvanagtmaal](https://github.com/pvanagtmaal)! - Fix externalizing external refs
412
+
413
+ ## 6.4.1
414
+
415
+ ### Patch Changes
416
+
417
+ - [#1269](https://github.com/openapi-ts/openapi-typescript/pull/1269) [`e735ff2`](https://github.com/openapi-ts/openapi-typescript/commit/e735ff2b9307eaec1959d0d3bf733a240a880c48) Thanks [@pimveldhuisen](https://github.com/pimveldhuisen)! - Stop trimming whitespace other than linebreaks in string values
418
+
419
+ ## 6.4.0
420
+
421
+ ### Minor Changes
422
+
423
+ - [#1263](https://github.com/openapi-ts/openapi-typescript/pull/1263) [`1bf2d4d`](https://github.com/openapi-ts/openapi-typescript/commit/1bf2d4db73b93fd1d36ffb56bdfb90321b0bfaba) Thanks [@drwpow](https://github.com/drwpow)! - Ship CJS bundle
424
+
425
+ ## 6.3.9
426
+
427
+ ### Patch Changes
428
+
429
+ - [#1248](https://github.com/openapi-ts/openapi-typescript/pull/1248) [`c145f5f`](https://github.com/openapi-ts/openapi-typescript/commit/c145f5f6164b52a8b437b2e944f60927d546edbf) Thanks [@drwpow](https://github.com/drwpow)! - Fix Record<string, never> appearing in union
430
+
431
+ - [#1248](https://github.com/openapi-ts/openapi-typescript/pull/1248) [`c145f5f`](https://github.com/openapi-ts/openapi-typescript/commit/c145f5f6164b52a8b437b2e944f60927d546edbf) Thanks [@drwpow](https://github.com/drwpow)! - Improve oneOf generated types
432
+
433
+ ## 6.3.8
434
+
435
+ ### Patch Changes
436
+
437
+ - [#1246](https://github.com/openapi-ts/openapi-typescript/pull/1246) [`17a375e`](https://github.com/openapi-ts/openapi-typescript/commit/17a375ec5d13b89f526a63f6d9b9f15db85b75e9) Thanks [@drwpow](https://github.com/drwpow)! - Fix remote path item object $refs
438
+
439
+ ## 6.3.7
440
+
441
+ ### Patch Changes
442
+
443
+ - [#1236](https://github.com/openapi-ts/openapi-typescript/pull/1236) [`95a4c8c`](https://github.com/openapi-ts/openapi-typescript/commit/95a4c8c573c8eea2c911359879419eb07e10bd63) Thanks [@drwpow](https://github.com/drwpow)! - Improve oneOf and enum handling
444
+
445
+ ## 6.3.6
446
+
447
+ ### Patch Changes
448
+
449
+ - [#1231](https://github.com/openapi-ts/openapi-typescript/pull/1231) [`e1ce2d6`](https://github.com/openapi-ts/openapi-typescript/commit/e1ce2d67a5350ff2871ae01503df2280454b7a80) Thanks [@tkrotoff](https://github.com/tkrotoff)! - Do not append trailing spaces to JSDoc tags
450
+
451
+ - [#1232](https://github.com/openapi-ts/openapi-typescript/pull/1232) [`31c030d`](https://github.com/openapi-ts/openapi-typescript/commit/31c030d5f1bf2739dbc146e42372cf9aec922f93) Thanks [@tkrotoff](https://github.com/tkrotoff)! - Remove unnecessary array parenthesis
452
+
453
+ ## 6.3.5
454
+
455
+ ### Patch Changes
456
+
457
+ - [#1228](https://github.com/openapi-ts/openapi-typescript/pull/1228) [`3107f1e`](https://github.com/openapi-ts/openapi-typescript/commit/3107f1edb9119397fca3e34aeda4def3555c0811) Thanks [@m-ronchi](https://github.com/m-ronchi)! - Fix boolean JSON Schemas
458
+
459
+ ## 6.3.4
460
+
461
+ ### Patch Changes
462
+
463
+ - [#1221](https://github.com/openapi-ts/openapi-typescript/pull/1221) [`4e96e9d`](https://github.com/openapi-ts/openapi-typescript/commit/4e96e9dcb845adc501d7256c3c3c9c30c8c6d99d) Thanks [@drwpow](https://github.com/drwpow)! - Remove OneOf<> helper for simple type comparisons
464
+
465
+ - [#1221](https://github.com/openapi-ts/openapi-typescript/pull/1221) [`4e96e9d`](https://github.com/openapi-ts/openapi-typescript/commit/4e96e9dcb845adc501d7256c3c3c9c30c8c6d99d) Thanks [@drwpow](https://github.com/drwpow)! - Fix 3.1 nullable types
466
+
467
+ ## 6.3.3
468
+
469
+ ### Patch Changes
470
+
471
+ - [#1200](https://github.com/openapi-ts/openapi-typescript/pull/1200) [`4fc8c20`](https://github.com/openapi-ts/openapi-typescript/commit/4fc8c20c079e81c600ecffffd90fc9c77c11d49e) Thanks [@toomuchdesign](https://github.com/toomuchdesign)! - Remove unexpected empty string in generated nullable polymophic enum types (["string", "null"])
472
+
473
+ ## 6.3.2
474
+
475
+ ### Patch Changes
476
+
477
+ - [#1212](https://github.com/openapi-ts/openapi-typescript/pull/1212) [`e173ccf`](https://github.com/openapi-ts/openapi-typescript/commit/e173ccf0d92fd4b54cb2dec54056f4647cbadc83) Thanks [@drwpow](https://github.com/drwpow)! - Fix bug with remote schema $refs
478
+
479
+ ## 6.3.1
480
+
481
+ ### Patch Changes
482
+
483
+ - [#1207](https://github.com/openapi-ts/openapi-typescript/pull/1207) [`914e049`](https://github.com/openapi-ts/openapi-typescript/commit/914e049573218b1bf791ce7855cdb1022bedc2b2) Thanks [@drwpow](https://github.com/drwpow)! - Fall back to TypeScript unions for long oneOf lists
484
+
485
+ ## 6.3.0
486
+
487
+ ### Minor Changes
488
+
489
+ - [#1205](https://github.com/openapi-ts/openapi-typescript/pull/1205) [`c753f7b`](https://github.com/openapi-ts/openapi-typescript/commit/c753f7b27a93bb963d8b762b8faa785025aa9135) Thanks [@drwpow](https://github.com/drwpow)! - Add prefixItems support
490
+
491
+ ### Patch Changes
492
+
493
+ - [#1203](https://github.com/openapi-ts/openapi-typescript/pull/1203) [`902fde1`](https://github.com/openapi-ts/openapi-typescript/commit/902fde156a55f2f0f4889680cea3605cc9d137b4) Thanks [@drwpow](https://github.com/drwpow)! - Fix mutating $refs in Node.js API
494
+
495
+ ## 6.2.9
496
+
497
+ ### Patch Changes
498
+
499
+ - [#1193](https://github.com/openapi-ts/openapi-typescript/pull/1193) [`64decb7`](https://github.com/openapi-ts/openapi-typescript/commit/64decb7243e3f4962dd3a97378f37142ee89546a) Thanks [@psychedelicious](https://github.com/psychedelicious)! - Add example for `Blob` type transforms
500
+
501
+ ## 6.2.8
502
+
503
+ ### Patch Changes
504
+
505
+ - [#1166](https://github.com/openapi-ts/openapi-typescript/pull/1166) [`db37f3c`](https://github.com/openapi-ts/openapi-typescript/commit/db37f3ca2993a3d7e7cf580273452c21a68c503d) Thanks [@pvanagtmaal](https://github.com/pvanagtmaal)! - Fix property escaping for discriminators
506
+
507
+ ## 6.2.7
508
+
509
+ ### Patch Changes
510
+
511
+ - [#1149](https://github.com/openapi-ts/openapi-typescript/pull/1149) [`b82cffb`](https://github.com/openapi-ts/openapi-typescript/commit/b82cffbc6c3fc0da9a24d9b90b303dcb2dd71c62) Thanks [@duncanbeevers](https://github.com/duncanbeevers)! - Stringify const values with no specified type
512
+
513
+ - [#1156](https://github.com/openapi-ts/openapi-typescript/pull/1156) [`ad017a9`](https://github.com/openapi-ts/openapi-typescript/commit/ad017a9ac2dc5b01726267fca9418b311fe91896) Thanks [@horaklukas](https://github.com/horaklukas)! - Avoid index signature TS error for paths with empty params
514
+
515
+ ## 6.2.6
516
+
517
+ ### Patch Changes
518
+
519
+ - [#1146](https://github.com/openapi-ts/openapi-typescript/pull/1146) [`12aa721`](https://github.com/openapi-ts/openapi-typescript/commit/12aa7212fbe09efd0fe89dca18713145e8da9c8e) Thanks [@drwpow](https://github.com/drwpow)! - Fix js-yaml $refs
520
+
521
+ ## 6.2.5
522
+
523
+ ### Patch Changes
524
+
525
+ - 7d09c3b: Support nested path parameters in `--path-params-as-types` (#1130). Thanks, [barakalon](https://github.com/barakalon)!
526
+
527
+ ## 6.2.4
528
+
529
+ ### Patch changes
530
+
531
+ - Fix remote `$ref`s to complete schemas (#1087)
532
+ - Fix incorrect check for protocol by [@happycollision](https://github.com/happycollision) (#1088)
533
+ - Fix missing parameters in operation object (#1090)
534
+
535
+ ## 6.2.3
536
+
537
+ ### Patch changes
538
+
539
+ - Fix tuples type generation by [@liangskyli](https://github.com/liangskyli) (#1085)
540
+
541
+ ## 6.2.2
542
+
543
+ ### Patch changes
544
+
545
+ - Fix path generation by [@HiiiiD](https://github.com/HiiiiD) (#991)
546
+ - If no type is specified, type as `unknown` by [@mitchell-merry](https://github.com/mitchell-merry) (#1049)
547
+ - Ensure not required parameters are created as optional properties by [@AplusKminus](https://github.com/AplusKminus) (#1053)
548
+ - Fix missing type defs (#1072)
549
+ - Deduplicate unions by [@mitchell-merry](https://github.com/mitchell-merry) (#1069)
550
+ - Fix tuples type generation support by [@liangskyli](https://github.com/liangskyli) (#1011)
551
+
552
+ ## 6.2.1
553
+
554
+ ### Patch changes
555
+
556
+ - Fix `$ref`’d parameters missing (#1061)
557
+ - Fix `oneOf` number const (#1056) by [@qnp](https://github.com/qnp)
558
+
559
+ ## 6.2.0
560
+
561
+ ### Minor changes
562
+
563
+ - New `--empty-objects-unknown` flag for better control over unspecified object types’ default shape by [@duncanbeevers](https://github.com/duncanbeevers) (#1032)
564
+
565
+ ### Patch changes
566
+
567
+ - JSDoc improvements by [@mitchell-merry](https://github.com/mitchell-merry) (#1029)
568
+ - Fix readonly nullable properties by [@mtth](https://github.com/mtth) (#1036)
569
+ - Tiny QoL improvements to invalid schema errors (#1043)
570
+
571
+ ## 6.1.1
572
+
573
+ ### Patch changes
574
+
575
+ - Fix response key for HTTP ranges (#1010) [@stefanmaric](https://github.com/stefanmaric)
576
+ - Escape constant string in generated schema (#1014) [@mvdbeek](https://github.com/mvdbeek)
577
+ - Support fully-qualified refs as discriminator mapping values (#1017) [@sgrimm](https://github.com/sgrimm)
578
+ - Improve behavior of allOf + required properties (#1027) [@Swiftwork](https://github.com/Swiftwork)
579
+ - Make params non-nullable even if all params are optional (#1022) [@sgrimm](https://github.com/sgrimm)
580
+
581
+ ## 6.1.0
582
+
583
+ ### Minor changes
584
+
585
+ - Adds `webhook` typings by [@yacinehmito](https://github.com/yacinehmito) (#1001)
586
+ - Use undici’s `fetch()` instead of `request()` which can be overridden locally by [@yacinehmito](https://github.com/yacinehmito) (#1002)
587
+ - Adds type helpers only when used by [@imagoiq](https://github.com/imagoiq) (#992)
588
+
589
+ ### Patch changes
590
+
591
+ - Fixes bug in glob output by [@BTMPL](https://github.com/BTMPL) (#999)
592
+ - Fixes header casing by [@HiiiiD](https://github.com/HiiiiD) (#990)
593
+ - Fixed multiple causes of bug #988 “cannot read properties of undefined” by [@HiiiiD](https://github.com/HiiiiD) and [@yacinehmito](https://github.com/yacinehmito) (#990 and #1002)
594
+
595
+ ## 6.0.3
596
+
597
+ ### Patch changes
598
+
599
+ - Fixed `nullable: true` (#983)
600
+ - Fixed `additionalProperties` bug (#983)
601
+
602
+ ## 6.0.2
603
+
604
+ ### Patch changes
605
+
606
+ - Fixes #975 where `#/components/examples` were being parsed as schema objects
607
+
608
+ ## 6.0.1
609
+
610
+ ### Patch changes
611
+
612
+ - Remove `postinstall` hook only meant for dev
613
+
614
+ ## 6.0.0
615
+
616
+ ## ⚠️ Breaking changes
617
+
618
+ - Dropped Prettier formatting and all formatting options. Now, simply format at your discretion (or not at all!)
619
+ - Dropped support for Swagger 2.0
620
+ - Dropped Node 14 support (it still works for now, but Node 14 bugs won’t be fixed if any arise)
621
+ - `--version` was changed to return the version of this library (also by dropping Swagger 2.0 support the old usage was no longer needed)
622
+ - Dropped `--raw-schema`. Your entry schema MUST be valid and complete (however, your $refs to subschemas may be partials).
623
+ - Dropped `--make-paths-enum` because it was incompatible with `--path-params-as-types`
624
+ - Dropped the CLI aliases `-it` and `-ap` (specify the full -`-immutable-types` or `--additional-properties` flag)
625
+ - Empty content: `{}` now returns `never`. Dropped the `--content-never` flag as this is now the default behavior.
626
+ - Renamed and upgraded the Node API’s `formatter()` function to `transform()` and `postTransform()`. It’s an overall improvement on the original concept with even more power than before.
627
+
628
+ ### Major changes
629
+
630
+ - Sped up type generation by **3×** by dropping Prettier & optimizing deep-object crawl speed
631
+ - OpenAPI 3.1 support for `discriminator` and polymorphic types
632
+ - Complete codebase rewrite and cleanup
633
+ - Now ships modern ESNext code rather than ES2018
634
+ - Improved internal types & documentation
635
+ - Test cleanup, now powered by Vitest
636
+ - New `transform()` and `postTransform()` hooks give you more control in overriding/extending generated types
637
+
638
+ ### Minor changes
639
+
640
+ - More accurate types for `oneOf` / `anyOf` / `allOf` (#894)
641
+ - `--immutable-types` has a new `-t` alias
642
+ - Addition of path.default types
643
+ - Support `nullable` as type arrays for OpenAPI 3.1 (#898)
644
+
645
+ ### Patch changes
646
+
647
+ - Fixed multiple bugs with deep-linked remote schemas and complex `$ref`s
648
+ - Fixed `anyOf` intersections resulting in unexpected type signatures
649
+ - Fixed `[string, null]` generating as `unknown`
650
+ - Fixed `{ property: unknown; }` with `allOf` union
651
+ - Fixed `requestBody` missing `content` property
652
+ - Fixed headers missing remote `$ref`s
653
+
654
+ ## 5.4.0
655
+
656
+ ### Minor changes
657
+
658
+ - New `--content-never` flag forces never response body by [@duncanbeevers](https://github.com/duncanbeevers) (#905)
659
+
660
+ ### Patch changes
661
+
662
+ - Empty strings are now allowed for properties like `@default` by [@duncanbeevers](https://github.com/duncanbeevers) (#906)
663
+ - Throws friendlier error on bad `--prettier-config` path by [@duncanbeevers](https://github.com/duncanbeevers) (#909)
664
+ - Objects are now allowed for properties like `@default` by [@duncanbeevers](https://github.com/duncanbeevers) (#910)
665
+ - Fixes `enum` export of operation paths by [@duncanbeevers](https://github.com/duncanbeevers) (#912)
666
+
667
+ ## 5.3.0
668
+
669
+ ### Minor changes
670
+
671
+ - New `--make-paths-enum` CLI flag by [@berzi](https://github.com/berzi) (#883)
672
+ - New `--path-params-as-types` CLI flag by [@Powell-v2](https://github.com/Powell-v) (#891)
673
+ - Supports `/** @constant */` JSDoc comments by [@PhilipTrauner](https://github.com/PhilipTrauner) (#896)
674
+ - You can now add your own custom comment header at the top of every generated doc (#904)
675
+
676
+ ### Patch changes
677
+
678
+ - Fixes inconsistent comment title (#904)
679
+
680
+ ## 5.2.0
681
+
682
+ ### Minor changes
683
+
684
+ - The `--export-type` flag was added to generate type instead of interface by [@dominikdosoudil](https://github.com/dominikdosoudil) (#868)
685
+ - Updated schemas & examples
686
+
687
+ ### Patch changes
688
+
689
+ - Tiny optimizations for a little speed boost (#881)
690
+ - Fixes CommonJS error for undici on older versions of Node (#879)
691
+
692
+ ## 5.1.1
693
+
694
+ ### Patch changes
695
+
696
+ - Removes CJS version from npm (to use CJS, use `openapi-typescript@4`). Version 5 switched to ESM as default anyway, and since tests are now testing ESM, the reliability of CJS was dubious (and there were TypeScript problems as well)
697
+ - Fixes type error when using TypeScript nightly (#847)
698
+ - Patches [security vulnerability with node-fetch](https://security.snyk.io/vuln/SNYK-JS-NODEFETCH-2342118) (by replacing with [undici](https://undici.nodejs.org/#/))
699
+
700
+ ## 5.1.0
701
+
702
+ ### Minor changes
703
+
704
+ - Adds constants support by [@sadfsdfdsa](https://github.com/sadfsdfdsa) (#831)
705
+
706
+ ### Patch changes
707
+
708
+ - Fixes a syntax error caused by an empty `oneOf` by [@sadfsdfdsa](https://github.com/sadfsdfdsa) (#830)
709
+
710
+ ## 5.0.1
711
+
712
+ ### Patch changes
713
+
714
+ - Adds missing types for CJS build (#861)
715
+
716
+ ## 5.0.0
717
+
718
+ ### ⚠️ Breaking changes
719
+
720
+ - 5.x drops support for Node 12. If you’re still on Node 12, be sure to lock your version to 4.x.
721
+
722
+ ### Major changes
723
+
724
+ - Updates this library to full ESM! ✨ This is the future of JavaScript, and is now natively supported in Node 14+.
725
+
726
+ ### Minor changes
727
+
728
+ - Now supports a `URL()` as input to make ESM usage easier ([see example](https://github.com/openapi-ts/openapi-typescript/tree/5.x#-node))
729
+
730
+ ## 4.5.0
731
+
732
+ ### Minor changes
733
+
734
+ - Significantly-enhanced JSDoc output by [@sadfsdfdsa](https://github.com/sadfsdfdsa) (#797)
735
+
736
+ ## 4.4.0
737
+
738
+ ### Minor changes
739
+
740
+ - Adds TypeScript `@deprecated` comment to deprecated schema objects by [@bunkscene](https://github.com/bunkscene)
741
+
742
+ ## 4.3.0
743
+
744
+ ### Minor changes
745
+
746
+ - In many areas, changed out `any` with `unknown` (#769). See #554 for more explanation / context
747
+
748
+ ### Patch changes
749
+
750
+ - An old bug is now gone! openapi-typescript would incorrectly generate `{ [key: string]: unknown }` for a type when it may have been a `string` or `number`. Now it will generate a more generic `unknown` type, unless it knows it’s dealing with an object for sure.
751
+
752
+ ## 4.2.0
753
+
754
+ ### Minor changes
755
+
756
+ - Reference arbitrary data on generated types via the `properties` key by [@Peteck](https://github.com/Peteck) (#626)
757
+
758
+ ## 4.1.1
759
+
760
+ ### Patch changes
761
+
762
+ - Fixes the remote schema URL cache being too long-lived by [@mbelsky](https://github.com/mbelsky) (#708)
763
+
764
+ ## 4.1.0
765
+
766
+ ### Minor changes
767
+
768
+ - New `--headersObject` and `--headers` CLI flags by [@ericzorn93](https://github.com/ericzorn93) (#764)
769
+
770
+ ### Patch changes
771
+
772
+ - `"type": "file"` no longer generates unexpected results (#766)
773
+
774
+ ## 4.0.2
775
+
776
+ ### Patch changes
777
+
778
+ - Loading in-memory schemas through the JS API resulted in broken `$ref`s (#689)
779
+
780
+ ## 4.0.1
781
+
782
+ ### Patch changes
783
+
784
+ - Fixes `properties` + `anyOf` with only `required` properties by [@gr2m](https://github.com/gr2m) (#643)
785
+
786
+ ## 4.0.0
787
+
788
+ ### ⚠️ Breaking changes
789
+
790
+ - The Node.js API now returns a promise, and can no longer be run synchronously (a necessity because resolving remote schemas can never be synchronous). Other than that, there are no other breaking changes. CLI users are unaffected, and the types generated are backwards-compatible with previous versions.
791
+
792
+ ### Major changes
793
+
794
+ - Now supports remote references (`$ref: "remote.yaml#/components/schemas/User`) 🎉 (#602)!
795
+
796
+ ## 3.4.1
797
+
798
+ ### Patch changes
799
+
800
+ - Fix glob accidentally generating empty folders alongside single-file schemas (#633)
801
+
802
+ ## 3.4.0
803
+
804
+ ### Minor changes
805
+
806
+ - Adds glob support thanks to [@sharmarajdaksh](https://github.com/sharmarajdaksh) (#615)
807
+ - Reverts #613 and adds a `--default-non-nullable` flag (#631)
808
+
809
+ ## 3.3.1
810
+
811
+ ### Patch changes
812
+
813
+ - Schema objects that have a `default:` property shouldn’t be marked as nullable (#613)
814
+
815
+ ## 3.3.0
816
+
817
+ ### Minor changes
818
+
819
+ - Changes default behavior of #585 to require an opt-in `--additional-properties` flag (#607)
820
+ - Adds `-c` shortcut alias for `--prettier-config` (#607)
821
+ - Adds `-it` shortcut alias for `--immutable-types` (#607)
822
+
823
+ ## 3.2.4
824
+
825
+ ### Patch changes
826
+
827
+ - `additionalProperties` now default to `true` per the OpenAPI 3.0 spec by [@mehalter](https://github.com/mehalter) (#583)
828
+
829
+ ## 3.2.3
830
+
831
+ ### Patch changes
832
+
833
+ - Fixed a parse error on `enum: []` (#563)
834
+ - Fixed another parse error on responses missing schemas (#565)
835
+ - Fixed a bug with the latest version of Prettier and `options.prettierConfig` (#566)
836
+
837
+ ## 3.2.2
838
+
839
+ ### Patch changes
840
+
841
+ - RequestBodies that had hyphens in their name would generate an error (#550). Thanks (again), [@ashsmith](https://github.com/ashsmith)!
842
+
843
+ ## 3.2.1
844
+
845
+ ### Patch changes
846
+
847
+ - Fixed an issue where a comment within a schema definition would break type gen (#548). Thanks, [@ashsmith](https://github.com/ashsmith)!
848
+
849
+ ## 3.2.0
850
+
851
+ ### Minor changes
852
+
853
+ - Added a new `--immutable-types` flag by [@dnalborczyk](https://github.com/dnalborczyk) (#522)
854
+
855
+ ### Patch changes
856
+
857
+ - The `operations` interface inherits parameters properly by [@henhal](https://github.com/henhal) (#530)
858
+
859
+ ## 3.1.2
860
+
861
+ ### Patch changes
862
+
863
+ - Fixes package types for TypeScript projects (#520)
864
+
865
+ ## 3.1.1
866
+
867
+ ### Patch changes
868
+
869
+ - Better handles remote schema content types (#516)
870
+
871
+ ## 3.1.0
872
+
873
+ ### Minor changes
874
+
875
+ - Remote schema loading now follows redirects (#510)
876
+ - New `--auth` flag to access private schemas (#508)
877
+ - npm version now ships with ESM [package exports](https://nodejs.org/api/packages.html#packages_package_entry_points) for better interop between ESM & CommonJS (#509)
878
+
879
+ ### Patch changes
880
+
881
+ - Fixes an OpenAPI V2 parameter bug by [@yamacent](https://github.com/yamacent) (#489)
882
+
883
+ ## 3.0.4
884
+
885
+ ### Patch changes
886
+
887
+ - If using OpenAPI 2.0, and you didn’t have `definitions`, an unexpected error was encountered. This is now fixed.
888
+
889
+ ## 3.0.3
890
+
891
+ ### Patch changes
892
+
893
+ - Improves handling of complex `oneOf` by [@gr2m](https://github.com/gr2m) (#491)
894
+
895
+ ## 3.0.2
896
+
897
+ ### Patch changes
898
+
899
+ - Fixed `requestBodies` transform by [@radist2s](https://github.com/radist2s) (#474)
900
+ - Fixed enum bug containing `null` by [@FedeBev](https://github.com/FedeBev) (#492)
901
+
902
+ ## 3.0.1
903
+
904
+ ### Patch changes
905
+
906
+ - Fixed generation bug where responseBodies that contained both a `$ref` and `operationId` generated invalid TypeScript (#464)
907
+
908
+ ## 3.0.0
909
+
910
+ ### Major changes
911
+
912
+ - This is marked as a breaking version for safety. Swagger v2 users should be able to migrate to `3.0.0` with no problems; OpenAPI v3 users will either experience no changes or minor changes that should be an overall improvement.
913
+
914
+ ### Minor changes
915
+
916
+ - Adds long-requested paths support to Swagger v2 schemas
917
+ - Adds more compact comments, resulting more readable generated types
918
+
919
+ ### Patch changes
920
+
921
+ - Fixes bugs in paths generation (missing $refs support in areas, inconsistent generation)
922
+
923
+ ## 2.5.0
924
+
925
+ ### Minor changes
926
+
927
+ - Comments can now be single-line, saving some needed space in the specs (#443)
928
+
929
+ ### Patch changes
930
+
931
+ - `additionalProperties.oneOf` is now generating as expected (#442)
932
+
933
+ ## 2.4.2
934
+
935
+ ### Patch changes
936
+
937
+ - Fixes `paths.requestBody.content` possibly missing by [@robertmassaioli](https://github.com/robertmassaioli) (#369)
938
+ - Fix: check if path item is method operation by [@rendall](https://github.com/rendall) (#366)
939
+
940
+ ## 2.4.1
941
+
942
+ ### Patch changes
943
+
944
+ - escape quotes in enum string values by [@gr2m](https://github.com/gr2m) (#365)
945
+
946
+ ## 2.4.0
947
+
948
+ ### Minor changes
949
+
950
+ - Add `operations` interface by [@gr2m](https://github.com/gr2m) (#353)
951
+
952
+ ## 2.3.4
953
+
954
+ ### Patch changes
955
+
956
+ - Allow `$ref: 'foo.yaml#bar'` syntax, but cast to `any` type (TODO: full external schema support) (#354)
957
+
958
+ ## 2.3.3
959
+
960
+ ### Patch changes
961
+
962
+ - `$refs` in paths now respect optional parameters (#352) by [@gr2m](https://github.com/gr2m)
963
+
964
+ ## 2.3.2
965
+
966
+ ### Patch changes
967
+
968
+ - Handle parameters on paths as well as methods by [@samdbmg](https://github.com/samdbmg) (#347)
969
+
970
+ ## 2.3.1
971
+
972
+ ### Patch changes
973
+
974
+ - Set index type to all possible values (#348)
975
+
976
+ ## 2.3.0
977
+
978
+ ### Minor changes
979
+
980
+ - `requestBody` and `$ref`-type parameters added in response types by [@gr2m](https://github.com/gr2m)
981
+
982
+ 🐣 Minor Changes
983
+
984
+ - responses without content schemas changed from `any` to `never` or `unknown` by [@gr2m](https://github.com/gr2m)
985
+
986
+ ## 2.2.0
987
+
988
+ ### Minor changes
989
+
990
+ - New name! Now published at `openapi-typescript`.
991
+ - Added paths support (#328)
992
+
993
+ ## 2.1.0
994
+
995
+ ### Minor changes
996
+
997
+ - Support for components.responses (#258)
998
+ - Adds tuple support (#293)
999
+
1000
+ ### Patch changes
1001
+
1002
+ - Fix missing port bug (#252)
1003
+ - additionalProperties interpolation, primitive enums (#266)
1004
+ - bubble up the error message / improve error message when failing to parse the schema (#269)
1005
+ - Improve error message when server is unreachable (#288)
1006
+
1007
+ ## 2.0.0
1008
+
1009
+ ### Major changes
1010
+
1011
+ - OpenAPI 3.0 support (#223)
1012
+ - Schema names are no longer transformed (e.g. `UserRole` is now `definitions['user']['role']`). See README for migration instructions. (#223)
1013
+ - Flags with “deprecated” warnings in `1.x` were dropped and no longer work (#223)
1014
+
1015
+ ### Minor changes
1016
+
1017
+ - Adds support for JSDoc comments (#223)
1018
+ - Support for null values (#223)
1019
+ - Improves Prettier config resolution (#224)
1020
+ - Improves array and object handling (#226)
1021
+
1022
+ ## 1.7.1
1023
+
1024
+ ### Patch changes
1025
+
1026
+ - Now handles the `@` character in namespaces thanks to [@sorin-davidoi](https://github.com/sorin-davidoi) 🎉
1027
+ - Updates Prettier to `2.0`
1028
+
1029
+ ## 1.7.0
1030
+
1031
+ ### Minor changes
1032
+
1033
+ - Swagger v3 is no longer unsupported! 🎉 But it’s in beta. Which means errors will probably arise. Please test it out on your existing v3 schema, and file any bugs here.
1034
+ - The `--swagger` flag is now deprecated; this library will automatically parse the version from the schema.
1035
+
1036
+ ### Minor changes
1037
+
1038
+ - Fixes a bug where `additionalProperties` weren’t respected for nested `properties` (#92).
1039
+
1040
+ ## 1.6.2
1041
+
1042
+ - Fixes an issue where `--camelcase` wouldn’t camelCase `$ref`s properly
1043
+
1044
+ ## 1.6.1
1045
+
1046
+ ### Patch changes
1047
+
1048
+ - Fixes a bug where a definition with a missing `type` would be skipped, rather than assume it’s an `object` like Swagger does by default.
1049
+
1050
+ ## 1.6.0
1051
+
1052
+ ### Minor changes
1053
+
1054
+ - Adds Property mapper function (see README) that supports `x-nullable` and other properties by [@atlefren](https://github.com/atlefren) (#118)
1055
+
1056
+ ## 1.5.0
1057
+
1058
+ ### Minor changes
1059
+
1060
+ - Convert names containing spaces to use underscores (#75) thanks to [@svnv](https://github.com/svnv)
1061
+
1062
+ ## 1.4.0
1063
+
1064
+ ### Minor changes
1065
+
1066
+ - Puts out JSDoc thanks to [@lbenie](https://github.com/lbenie)
1067
+
1068
+ ## 1.3.1
1069
+
1070
+ ### Patch changes
1071
+
1072
+ - Fix nested arrays (#54)
1073
+
1074
+ ## 1.3.0
1075
+
1076
+ ### Minor changes
1077
+
1078
+ - The `--nowrapper` flag was added to the CLI, courtesy of [@scvnathan](https://github.com/scvnathan) (#33). Now you don’t have to wrap your interfaces if you don’t want to!
1079
+
1080
+ ## 1.2.2
1081
+
1082
+ ### Patch changes
1083
+
1084
+ - This fixes underscores from accidentally appearing in some TypeScript interface names (#29)
1085
+
1086
+ ## 1.2.1
1087
+
1088
+ ### Patch changes
1089
+
1090
+ - Swagger properties in `kebab-case` would break generation unless they were converted to `--camelcase` (#13). This has been fixed! 🎉 You still have the option of converting to `--camelcase`, but now you can keep `kebab-case` too if needed
1091
+
1092
+ ## 1.2.0
1093
+
1094
+ ### Minor changes
1095
+
1096
+ - Adds `--wrapper` option, letting you specify any namespace or module wrapper for exporting types. See the README for full description
1097
+
1098
+ ### ⚠️ Breaking changes
1099
+
1100
+ - `--namespace` and `--export` options are now deprecated, in favor of the more versatile `--wrapper`
1101
+
1102
+ ## 1.1.3
1103
+
1104
+ ### Patch changes
1105
+
1106
+ - Now supports an `--export` option to export namespaces thanks to [@tpdewolf](https://github.com/tpdewolf)
1107
+
1108
+ ## 1.1.2
1109
+
1110
+ ### Patch changes
1111
+
1112
+ - No longer generates empty interfaces (caused by top-level definitions being array types, referencing other definitions)
1113
+
1114
+ ## 1.1.1
1115
+
1116
+ ### Patch changes
1117
+
1118
+ - Improves enum generation to be simpler-to-use (values are now just hardcoded inline, rather than trying to use TypeScript enums).
1119
+
1120
+ ## 1.1.0
1121
+
1122
+ ### Major changes
1123
+
1124
+ - Changes default behavior to preserve `snake_case` properties (you can still convert with `--camelcase`)
1125
+
1126
+ ### Minor changes
1127
+
1128
+ - Bundles & ships with [@pika/pack](https://github.com/pikapkg/pack)
1129
+
1130
+ ## 0.3.1
1131
+
1132
+ ### Patch changes
1133
+
1134
+ - Falls back to `object` if it can’t grab properties
1135
+
1136
+ ## 0.3.0
1137
+
1138
+ ### Minor changes
1139
+
1140
+ - Different API, now requires `namespace` as 2nd parameter. Because namespacing is good.
1141
+
1142
+ ### Patch changes
1143
+
1144
+ - Maybe a bug; maybe not—if a Swagger spec had a common name like `Error` it would break your build if another type extended from it
1145
+
1146
+ ## 0.2.1
1147
+
1148
+ ### Patch changes
1149
+
1150
+ - Fixes bug where number enums names could be generated.
1151
+
1152
+ ## 0.2.0
1153
+
1154
+ ### Minor changes
1155
+
1156
+ - Supports TypeScript enums
1157
+
1158
+ ## 0.1.0
1159
+
1160
+ ### Minor changes
1161
+
1162
+ - Exists