Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.13.0
-
None
Description
Given the IDL:
struct Example {
1: bool withTag (go.tag = "foo:\"bar\"")
2: bool withoutTag
}
The generated code looks like:
type Example struct { WithTag bool `thrift:"withTag,1", foo:"bar"` WithoutTag bool `thrift:"withoutTag,2" db:"withoutTag" json:"withoutTag"` }
The bug is on this line of the Go generator where any custom tag overwrites the existing db and json tags.
Custom tags that aren't overrides should be appended instead of replacing the whole thing.
Attachments
Issue Links
- links to