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

oj.Marshal fails on embedded struct pointer #71

Closed
right-mouse opened this issue Aug 25, 2021 · 2 comments
Closed

oj.Marshal fails on embedded struct pointer #71

right-mouse opened this issue Aug 25, 2021 · 2 comments

Comments

@right-mouse
Copy link

oj.Marshal fails with the following error when called on structs with embedded pointer structs: reflect: NumField of non-struct type *<embedded-struct-type>. It works fine if the embedded struct isn't a pointer.

Playground example: https://play.golang.org/p/jow7wUE3nNV

@ohler55
Copy link
Owner

ohler55 commented Sep 12, 2021

Fix is in the develop branch. Will release after the remaining open issue is fixed.

@ohler55
Copy link
Owner

ohler55 commented Sep 12, 2021

v1.12.6 released with the fix.

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

No branches or pull requests

2 participants