What steps will reproduce the problem?
When the json of a field in the api is like this:
"schemas": {
"Person": {
"scores": {
"type": "array",
"items": {
"type": "string",
"format": "float64",
}
}
}
}
The generated Go struct looks like this:
Person {
Scores []float64 `json:"scores,omitempty"`
}
Then when the api returns something like
{ "scores": ["1234", "234", "234"] }
The json decoder fails because it's expecting an array of float64s, but its
receiving an array of strings.
This failure can be seen here:
http://play.golang.org/p/TOMqS10VMo
Original issue reported on code.google.com by pcarle...@google.com on 26 Aug 2013 at 11:11
Original issue reported on code.google.com by
pcarle...@google.com
on 26 Aug 2013 at 11:11