-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
Merge duplicate struct definitions #65
Comments
I just encountered this and came to file this exact issue. I'd be willing to take a look (given the tag). Incidentally, this tool is a boon to anyone using a public API that produces extremely verbose structures. Thank you! ❤️ 🙏 |
@michaelsanford Yes, would be happy to have your contribution! Thank you! |
@michaelsanford Are you still working on this? |
@Capable-Disk4147 My gosh, this one slipped under my radar. Many apologies: I am not. |
I should be able to take a look, but I'm AFK a bit ATM so if someone else is keen then feel free |
I encountered the same problem, here is my simplified example for inspiration.
I will have a look at the code later to see if I can help |
Where there are multiple properties which reuse the same nested properties, the corresponding struct definition should be flattened. Take the following JSON:
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: