File tree Expand file tree Collapse file tree
fern/products/sdks/generators/swift/changelog Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments