google-api-java-client icon indicating copy to clipboard operation
google-api-java-client copied to clipboard

User get list types return Object (directory_v1-rev118-1.25.0)

Open andrewring opened this issue 5 years ago • 1 comments

In directory_v1-rev118-1.25.0 (and it appears many previous versions) methods on User objects which should return lists, instead return Object (see API docs). List object types, such as UserAddress exist in the library, and should be used in return values, e.x. getAddresses() should return List<UserAddress>.

This was reported in 2015, but closed apparently without a fix.

andrewring avatar May 18 '20 18:05 andrewring

@andrewring thanks for reaching out. This seems strange but possibly due to some constraint in the client generator. I'll try to poke around and see what's possible.

danoscarmike avatar May 26 '20 20:05 danoscarmike