Skip to content

Commit

Permalink
fix map conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
kesonan committed Aug 8, 2024
1 parent 2758c4e commit 668331f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/goctl/pkg/parser/api/parser/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (a *Analyzer) astTypeToSpec(in ast.DataType) (spec.Type, error) {

return spec.MapType{
RawName: v.RawText(),
Key: v.RawText(),
Key: v.Key.RawText(),
Value: value,
}, nil
case *ast.PointerDataType:
Expand Down

0 comments on commit 668331f

Please sign in to comment.