Skip to content

Commit a79ec1a

Browse files
Update changelogs from fern repo (#4488)
Co-authored-by: iamnamananand996 <31537362+iamnamananand996@users.noreply.github.com>
1 parent 99070a0 commit a79ec1a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

fern/products/sdks/overview/rust/changelog/2026-03-22.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.26.1
2+
**`(fix):`** Fix convenience constructors for union variants whose optional fields have nested
3+
optional/nullable IR wrappers (e.g. `optional<nullable<string>>` from OpenAPI).
4+
Previously only one layer was unwrapped, leaving the parameter as `Option<T>` instead
5+
of `T`, which caused `E0308 mismatched types` compilation errors. Now all
6+
optional/nullable layers are stripped to produce the correct bare type.
7+
8+
19
## 0.26.0
210
**`(feat):`** Generate convenience constructors for discriminated union variants with optional fields.
311
For each optional field in an inlined variant, a `{variant}_with_{field}` constructor is

0 commit comments

Comments
 (0)