|
|
FRCAPI Bug with Team API or working as intended?
|
|
01/02/2016 9:33 PM
post4762
|
FRCAPI Bug with Team API or working as intended?
I received data from the API I feel may be incorrect or at least unintended.
The call was 2016/teams?eventCode=IACF&page=2
Most of the teams return data as expected, but the data for 5935 returns null for city rather than an empty string. My
code was making the assumption city always returns a string. If that's the case, it's quite possible that robotName is
also not working as intended as it also returns a null instead of an empty string if there is no name, I've already
changed the processing on my end.
I fully understand that what's happening is that the when the team object on the server is being serialized strings
become strings and nulls become nulls, just not sure if that's the intent or not.
This is the specific team record I'm talking about.
{{"teamNumber":5935,"nameFull":"","nameShort":"","city":null,"stateProv":"Iowa","country":"USA","website":"http://www.
firstinspires.org/","rookieYear":2016,"robotName":null,"districtCode":null}}
|
|
|
|
|