You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -262,9 +286,7 @@ Generator options enable additional forward compatibility features. These are co
262
286
language: "yaml",
263
287
code: `java:
264
288
forwardCompatibleEnumsByDefault: true
265
-
unionStrategy: populated-fields
266
-
openUnions: true
267
-
generateOptionalUnionAccessors: true`,
289
+
unionStrategy: populated-fields`,
268
290
},
269
291
{
270
292
label: "Python",
@@ -277,7 +299,7 @@ Generator options enable additional forward compatibility features. These are co
277
299
278
300
### Forward-compatible enums
279
301
280
-
When `forwardCompatibleEnumsByDefault` is enabled (the default for new TypeScript, Go, and Java SDKs), enums accept unknown values instead of rejecting the response:
302
+
When `forwardCompatibleEnumsByDefault` is enabled (the default for new TypeScript SDKs), enums accept unknown values instead of rejecting the response:
@@ -322,7 +344,7 @@ Go SDKs can achieve similar resilience with `respectRequiredFields: false`, whic
322
344
323
345
### Smart union deserialization
324
346
325
-
When `unionStrategy` is set to `populated-fields` (the default for new TypeScript, Go, and Java SDKs), the SDK picks the best union variant by trying all types and returning the one with the most matching fields. When there's a tie, it picks the variant with the fewest coerced or inexact fields.
347
+
When `unionStrategy` is set to `populated-fields` (the default for new TypeScriptand Go SDKs), the SDK picks the best union variant by trying all types and returning the one with the most matching fields. When there's a tie, it picks the variant with the fewest coerced or inexact fields.
326
348
327
349
This prevents issues where one union variant is a subset of another and the wrong variant gets selected due to ordering.
0 commit comments