Skip to content

fix: use MapNull instead of uninstantiated generic ObjectMap#26

Open
adityachaudhary99 wants to merge 1 commit into
zeropsio:mainfrom
adityachaudhary99:fix/objectmap-generic
Open

fix: use MapNull instead of uninstantiated generic ObjectMap#26
adityachaudhary99 wants to merge 1 commit into
zeropsio:mainfrom
adityachaudhary99:fix/objectmap-generic

Conversation

@adityachaudhary99
Copy link
Copy Markdown

@adityachaudhary99 adityachaudhary99 commented May 27, 2026

types.ObjectMap[K, V any] is an uninstantiated generic type and cannot be used as a concrete field type in structs. This causes the SDK to panic when marshaling/unmarshaling certain API responses that use types.ObjectMap.

Replaced with types.MapNull[string, any] which is the concrete instantiation that was intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant