Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(go): object type not recognized #3485

Merged
merged 1 commit into from
Apr 11, 2022
Merged

Commits on Apr 11, 2022

  1. fix(go): object type not recognized

    When a struct pointer was passed in an `interface{}` position, the
    converter would trip and register a new opaque instance of `Object`
    instead of correctly serializing a struct.
    
    This is because hte pointer is double-indirected (the `interface{}` is a
    reference to the `&struct`, which is a reference to the `struct`). This
    change adds a condition to detect such cases (`interface{}` abstracts
    another pointer), and properly serialize that.
    
    Fixes #2880
    RomainMuller committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    7f73430 View commit details
    Browse the repository at this point in the history