Open franzen opened 4 years ago
Dear @franzen , thanks for the report.
The code of the jsonschema package was part of a simple POC and I am not surprised it does not work for more complicated settings. There most certainly are problems with more complicated naming, nested structures, etc.
Unfortunately I currently do not have time to look into the issues myself. However, I will happily assist in any PRs that fix or improve the aforementioned issues.
Test case
Use the following code to generate the data structures
The generated
data.go
file is brokenDuplicates
Contains duplicates like:
Wrong Property used
The generated code mixes the names of the created properties, eg.
ConversationAccount
andConversation
, see the following code generated:and