You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2021/08/22 08:46:00 UTC
[jira] [Created] (YUNIKORN-818) the response of REST APIs should
use empty array rather than null
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: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org