Skip to content

Commit b269e85

Browse files
Update changelogs from fern repo (#5416)
Co-authored-by: dsinghvi <10870189+dsinghvi@users.noreply.github.com>
1 parent 8e3a140 commit b269e85

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

fern/products/sdks/generators/swift/changelog/2026-05-06.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## 0.35.3
2+
**`(fix):`** Fix Swift wire-test runtime equality failures when a response body contains
3+
a map (`Dictionary<String, T>`) whose value is an explicit-null nullable, or
4+
an `Optional<Nullable<T>>` field whose example is explicit-null. Previously
5+
the generator embedded the IR's `jsonExample` for the response body, which
6+
silently dropped keys whose value resolved to JS `undefined` (e.g. an
7+
unresolved `nullable<T>`), and the expected-struct generator filtered
8+
optional properties using the same `jsonExample === undefined` check, which
9+
matched both "truly absent" and "explicit-null nullable" examples. The wire-
10+
test JSON body is now built by walking the typed example shape directly,
11+
and the expected-struct generator skips a property only when the typed
12+
`optional` container is genuinely empty — so an explicit-null nullable
13+
inside an optional now renders as `Optional(.null)` in both the embedded
14+
JSON body and the expected struct.
15+
16+
117
## 0.35.2
218
**`(chore):`** Update the Swift SDK generator container base image from
319
`node:22.12-alpine3.20` to `node:22.22-alpine3.22` to address 92

0 commit comments

Comments
 (0)