You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Generation doesn't throw any error and successfully generates invalid code.
To Reproduce
// goverter:converter
type Converter interface {
// goverter:mapIdentity Address
ConvertPerson(source Person) (APIPerson, error)
// goverter:map Name StreetName
ConvertAddress(source Person) (APIAddress, error)
}
type Person struct {
Name string
Street string
City string
}
type APIPerson struct {
Name string
Address *APIAddress
}
type APIAddress struct {
StreetName string
City string
}
Expected behavior
The generated code is missing ampersand sign.
Fixed in v0.6.2, sadly I'm not satisfied with the solution, because it creates an allocation if the conversion errors, I've created another issue for this.
Describe the bug
Generation doesn't throw any error and successfully generates invalid code.
To Reproduce
Expected behavior
The generated code is missing ampersand sign.
protoPersonToPProtoAPIAddress in case of err != nil in returned value & is missing. Btw. why there's doubled P in method's name.
The text was updated successfully, but these errors were encountered: