Open piqoni opened 2 years ago
Oh... that's tricky. It's probably because the "data" structs don't have exactly the same fields. Or something like that.
I'm a bit swamped with other things right now but I'd welcome a pull request to patch this! (Preferably one that simplifies existing code rather than adding complexity, if possible. It's likelhy an earlier version of this script doesn't have this bug; it'd be useful to know where the bug was introduced.)
@piqoni I cannot reproduce this. Can you upload a gist (https://gist.github.com) and share both the unexpected go as well as the full json?
This JSON:
Generates a struct with multiple Data0, Data1, Data2 structs inside. (Cannot put it here as Github complains about it being too big)
Expected Output: