abujehad139 / google-api-go-client

Automatically exported from code.google.com/p/google-api-go-client
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Some types are generated as blank, thus missing valuable data from the response #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Specifically, I believe this applies to types which should be 
map[string]string{} or similar.

Examples:

analytics.GaDataTotalsForAllResults 
https://code.google.com/p/google-api-go-client/source/browse/analytics/v3/analyt
ics-gen.go#866

analytics.McfDataTotalsForAllResults
https://code.google.com/p/google-api-go-client/source/browse/analytics/v3/analyt
ics-gen.go#1189

analytics.ColumnAttributes: 
https://code.google.com/p/google-api-go-client/source/browse/analytics/v3/analyt
ics-gen.go#31

In JSON, the result (for GaDataTotalsForAllResults, for example) looks like 
this:

        ...
        "totalsForAllResults": {
            "ga:visits": "9978"
        },
        ...

But in the struct type, it just ends up being a pointer to a blank struct and 
the map is lost.

Original issue reported on code.google.com by shazow on 7 Sep 2013 at 10:53