a-h / generate

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

How do you use this? #73

Open vbisbest opened 4 years ago

vbisbest commented 4 years ago

I used the tool to create all of the structs and it looks great. It unmarshalls properly, however all of my sub objects are just interfaces. The custom unmarshallers are never called for the sub objects. Here is a link to the schema.

https://schema.getpostman.com/collection/json/v2.1.0/draft-07/collection.json

The top level items unmarshal properly, just seems to be the sub objects. Am I doing something wrong?