Comment some manual conversions
Explain why seemingly-useless manual conversions are needed. This is deeply unfortunate, but better to document it than not.
This commit is contained in:
@@ -23,11 +23,13 @@ import (
|
||||
)
|
||||
|
||||
// Convert_v1_UserInfo_To_authentication_UserInfo is defined outside the autogenerated file for use by other API packages
|
||||
// This is needed because it is referenced from other APIs, but is invisible at code-generation time because of the build tags.
|
||||
func Convert_v1_UserInfo_To_authentication_UserInfo(in *v1.UserInfo, out *authentication.UserInfo, s conversion.Scope) error {
|
||||
return autoConvert_v1_UserInfo_To_authentication_UserInfo(in, out, s)
|
||||
}
|
||||
|
||||
// Convert_authentication_UserInfo_To_v1_UserInfo is defined outside the autogenerated file for use by other API packages
|
||||
// This is needed because it is referenced from other APIs, but is invisible at code-generation time because of the build tags.
|
||||
func Convert_authentication_UserInfo_To_v1_UserInfo(in *authentication.UserInfo, out *v1.UserInfo, s conversion.Scope) error {
|
||||
return autoConvert_authentication_UserInfo_To_v1_UserInfo(in, out, s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user