跳到导航

1.64.3

(fix): Restore pointer types for optional fields that reference a nullable list, map, or unknown alias (for example a type: [object, "null"] schema with additionalProperties, or a type: [array, "null"] schema). Since 1.46.1 these fields were generated as bare values (Metadata MetadataAlias) instead of pointers (Metadata *MetadataAlias), which was a breaking change for existing SDKs. The double-pointer guard now only applies to aliases that actually render as Go pointers (nullable primitives, enums, objects, and unions). Dynamic snippets now render &Alias{...} literals for these fields (including aliases of such aliases), take the address of unknown alias values, and no longer emit && for aliases that already render as pointers.