Commit c46ee644 authored by Eric Myhre's avatar Eric Myhre

Fix lookup of field symbol overrides.

parent fa013972
...@@ -52,7 +52,7 @@ func (cfg *AdjunctCfg) TypeSymbol(t schema.Type) string { ...@@ -52,7 +52,7 @@ func (cfg *AdjunctCfg) TypeSymbol(t schema.Type) string {
} }
func (cfg *AdjunctCfg) FieldSymbolLower(f schema.StructField) string { func (cfg *AdjunctCfg) FieldSymbolLower(f schema.StructField) string {
if x, ok := cfg.FieldSymbolLowerOverrides[FieldTuple{f.Type().Name(), f.Name()}]; ok { if x, ok := cfg.FieldSymbolLowerOverrides[FieldTuple{f.Parent().Name(), f.Name()}]; ok {
return x return x
} }
return f.Name() // presumed already lower return f.Name() // presumed already lower
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment