mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 13:42:45 +00:00
[GO][Client] Use a *os.File for the API Client when uploading and downloading (#14340)
* Change the return type of a file back to a pointer * Change the api template to handle not double pointer-ing return types of os.File * Fix unit tests * Couple more unit test fixes
This commit is contained in:
@@ -68,7 +68,7 @@ type PetApiServicer interface {
|
||||
GetPetById(context.Context, int64) (ImplResponse, error)
|
||||
UpdatePet(context.Context, Pet) (ImplResponse, error)
|
||||
UpdatePetWithForm(context.Context, int64, string, string) (ImplResponse, error)
|
||||
UploadFile(context.Context, int64, string, os.File) (ImplResponse, error)
|
||||
UploadFile(context.Context, int64, string, *os.File) (ImplResponse, error)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user