Forum Topic - FRCAPI Bug with Team API or working as intended?: (2 Items)
   
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}}
Re: FRCAPI Bug with Team API or working as intended?  
Hi,
As you've noticed, you can receive nulls for some fields on the team (and event) endpoints. I've added a note to the 
documentation to make this more clear. Essentially the reason is that we don't manipulate any of the data that come from
 TIMS or MyEvents (team and event listings). If a team doesn't specify a field, we will show it as null. If a team was 
to enter their robot name as (empty string), we would present an empty string instead. Both are possible team entries in
 the registration system.
Thanks,