2.24.4
(fix): Fix dynamic snippet generation for undiscriminated unions when use-undiscriminated-unions: true
is set. Previously, snippets always emitted OneOf<A, B, C> regardless of the config setting.
Now, when the setting is enabled, snippets use the SDK’s generated union wrapper type (e.g.
MixedType) instead, matching the actual SDK types and producing compilable code.
2.24.3
(fix): Re-throw errors after logging for README.md and reference.md generation failures.
Documentation generation errors now break the generation flow so they are treated
as important to fix.
2.24.2
(fix): Fix dynamic snippets to include global headers in generated code examples.
Previously, required global headers (e.g., X-Organization-ID) configured via
x-fern-global-headers were missing from dynamic snippet output. Also fixes
header value lookup to use wire values instead of a non-existent property.