Chia-Ping Tsai created YUNIKORN-818:
---------------------------------------
Summary: the response of REST APIs should use empty array rather
than null
Key: YUNIKORN-818
URL: https://issues.apache.org/jira/browse/YUNIKORN-818
Project: Apache YuniKorn
Issue Type: Improvement
Reporter: Chia-Ping Tsai
Assignee: Chia-Ping Tsai
It seems to me empty array is more suitable than null. The benefit is that
user don't need to check null before looping the value. Maybe some json tools
can convert null array to empty automatically. However, using empty array to
replace null can save the rest of json tools (and programmers) from null hell.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]