Skip to content

Commit 4b393f1

Browse files
Swimburgergithub-actions[bot]
authored andcommitted
update changelogs
1 parent 890ebd8 commit 4b393f1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## 3.43.1
2+
**`(fix):`** Fix bug where ts-morph would generate incorrect code when `Accept: */*` header would be defined as
3+
a parameter in OpenAPI. The old generated code would generate broken JSDoc comments with invalid syntax.
4+
5+
6+
**`(chore):`** Optimize generated SDK code by eliminating unnecessary `.toString()` calls on primitive types in headers
7+
and query parameters. The generator now only stringifies types that require it (dates/datetimes) while
8+
using primitives like strings, numbers, booleans, and UUIDs directly.
9+
10+
11+
**`(fix):`** Add `createNumericLiteralSafe` utility to properly handle negative numbers in generated code examples,
12+
ensuring compatibility with newer TypeScript/ts-morph versions that require prefix unary expressions.
13+
14+
15+
**`(fix):`** Add support for nullable types in query parameter type resolution, properly unwrapping both optional
16+
and nullable containers when determining primitive and object types.
17+
18+
19+
**`(chore):`** Simplify header and query parameter types from verbose union types to `Record<string, unknown>` for
20+
more flexible and less complex type signatures in generated SDKs.
21+
22+

0 commit comments

Comments
 (0)