I've hit an example of an array field (SOTerm.parents) being empty, which raises a question.
Right now my API method is returning null rather than an empty array. Which is fine with me, but I think we've been specifying non-null arrays in all of the types, whereas I've changed that to allow null for the array (but no null members) to prevent an error message. Should I modify the code to return an empty array rather than null, and do so in all cases of arrays? (I'm not sure why this is returning null rather than an empty array, TBH, but I'm sure I can figure that out if I need to).
I've hit an example of an array field (SOTerm.parents) being empty, which raises a question.
Right now my API method is returning null rather than an empty array. Which is fine with me, but I think we've been specifying non-null arrays in all of the types, whereas I've changed that to allow null for the array (but no null members) to prevent an error message. Should I modify the code to return an empty array rather than null, and do so in all cases of arrays? (I'm not sure why this is returning null rather than an empty array, TBH, but I'm sure I can figure that out if I need to).