Skip to content

Commit

Permalink
ensure correct name is used in CleanObjectName
Browse files Browse the repository at this point in the history
  • Loading branch information
matryer committed Jan 11, 2023
1 parent a0e7389 commit 9382886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/parser.go
Expand Up @@ -443,7 +443,7 @@ func (p *Parser) parseFieldType(pkg *packages.Package, obj types.Object) (FieldT
ftype.ObjectName = types.TypeString(originalTyp, func(other *types.Package) string { return "" })
ftype.ObjectNameLowerCamel = camelizeDown(ftype.ObjectName)
ftype.TypeID = pkgPath + "." + ftype.ObjectName
ftype.CleanObjectName = strings.TrimPrefix(ftype.TypeName, "*")
ftype.CleanObjectName = strings.TrimPrefix(ftype.ObjectName, "*")
ftype.TSType = ftype.CleanObjectName
ftype.JSType = ftype.CleanObjectName
ftype.SwiftType = ftype.CleanObjectName
Expand Down

0 comments on commit 9382886

Please sign in to comment.