a-h / generate

Generates Go (golang) Structs from JSON schema.
MIT License
444 stars 137 forks source link

Converting mkvmerge schema to Go silently generates incorrect code? #76

Open marcopaganini opened 3 years ago

marcopaganini commented 3 years ago

I've been trying to convert the mkvmerge v14 JSON Schema to a Go Struct. The program generates the output file without complaints, but certain fields appear to be missing.

One example: The source contains the default_track field inside properties, but this is not anywhere in the generated Go source.

I have impression that this could be happening due to multiple fields called properties in the source, but haven't dug into the source code to have a more educated opinion.