> This page is for SDKs, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For task-scoped instructions for coding agents working in a Fern project, run `fern instructions` (or `npx fern-api@latest instructions` if the Fern CLI isn't installed or doesn't recognize `instructions`), or see https://buildwithfern.com/learn/home/fern-instructions.md.

## 0.28.0

**`(feat):`** Generate discriminated unions using direct associated values instead of synthesized nested wrapper structs, while preserving Codable behavior for object, keyed, primitive, and empty variants.

## 0.27.1

**`(fix):`** Improve error logging for README.md and reference.md generation failures.
The generator now logs the actual error message and stack trace instead
of crashing the entire generation, making it easier to diagnose issues.