You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of returning null for certain keys in the API responses, consider returning 0 for numeric values or an empty array [] for values that, if populated, would normally return an array.
This would make interfacing with the API much easier for Javascript/Typescript (possibly other languages as well).
Example Candidates:
approvals (0)
endorsements (0)
sysadmins (0)
moderators (0)
tags ([])
censure_reasons ([])
censure_evidence ([])
censure_count (0)
endorsement_reasons ([])
hesitation_reasons ([])
hesitation_evidence ([])
hesitation_count (0)
The text was updated successfully, but these errors were encountered:
Instead of returning
null
for certain keys in the API responses, consider returning0
for numeric values or an empty array[]
for values that, if populated, would normally return an array.This would make interfacing with the API much easier for Javascript/Typescript (possibly other languages as well).
Example Candidates:
The text was updated successfully, but these errors were encountered: