We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like to generate a Go struct where some of the fields are "embedded" in another struct:
type Inner struct { Foo string `json:"foo"` Bar string `json:"bar"` } type SharedType struct { Inner Baz string `json:"baz"` }
This is marshaled and unmarshaled as:
{ "foo": "<data>", "bar": "<data>", "baz": "<data>" }
Would it be feasible to add Go-specific medadata to enable codegen like this? Something like:
medadata
{ "properties": { "foo": { "metadata": { "goEmbedded": "Inner" }, "type": "string" }, "bar": { "metadata": { "goEmbedded": "Inner" }, "type": "string" }, "baz": { "type": "string" }, } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would like to generate a Go struct where some of the fields are "embedded" in another struct:
This is marshaled and unmarshaled as:
Would it be feasible to add Go-specific
medadata
to enable codegen like this? Something like:The text was updated successfully, but these errors were encountered: