-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
Greetings, dear maintainer!
I see you've ended your work on the project, but are you not considering even accepting a bug fix PR?
If you're willing to evaluate it, I can submit an adjustment to the method highlighted below to avoid duplicating enum types in the g.typeenums slice. It would be a short piece of code, similar to g.hasTypeDef().
Lines 329 to 332 in afbafcb
| func (g *Generator) resolveEnum(s *avro.EnumSchema) string { | |
| g.typeenums = append(g.typeenums, newTypeEnum(s.Name(), s.Symbols())) | |
| return s.Name() | |
| } |
The problem occurs when more than one Record references the same enum in its fields.
Metadata
Metadata
Assignees
Labels
No labels