-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Struct generation issue #24
Comments
If I change the name of the struct from |
I have a feeling there is a nasty bug lurking in the model generation, it makes a dependency loop between the generated code and the user code. generated.go contains Address, it might even reference some user type this means when regenerating the code the user code is invalid without the generated code (address is not defined). I think I'm going to need to split it into two phases:
I'll look into it some more, thanks for the report 👍 |
Ya that does sound like something that could be affecting me. I do have other structs which have an address field that is a string. |
So sometimes when I'm running the generation I get this error,
expected Address to be a named struct, instead found string
and the interface will generate all the fields, but sometimes the generate runs successfully with no errors and its using the type I put in types.json.
I have been trying to figure out why this is happening, any clues?
The text was updated successfully, but these errors were encountered: