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
When using a SchemaCustomizer with an embedded struct field that has more fields than the root object, the generator panics. It seems like the issue is that the field index is accessed from the parent based on the index of the embedded.
This seems to be a problem with how jsoninfo treats Anonymous fields – it seems to just add them as fields to the parent, which is incorrect if the reflected type is used later on for index access. Moreover, it seems that TypeInfo only supports a flat list of fields.
I'll try to spend some time for a solution, though do not know if it will be backwards compatible.
When using a
SchemaCustomizer
with an embedded struct field that has more fields than the root object, the generator panics. It seems like the issue is that the field index is accessed from the parent based on the index of the embedded.I have a test showing this here: austince@f93a9da
The text was updated successfully, but these errors were encountered: