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
I just ran into that the current implementation doesn't properly handle inline struct fields.
When a struct embeds another struct with the json:",inline" tag, the fields from the embedded struct should be flattened into the parent struct's schema.
Hey!
I just ran into that the current implementation doesn't properly handle inline struct fields.
When a struct embeds another struct with the
json:",inline"
tag, the fields from the embedded struct should be flattened into the parent struct's schema.Here's a test case that demonstrates the issue:
I've already created a fix, will open a pull request soon.
The text was updated successfully, but these errors were encountered: