[
https://issues.apache.org/jira/browse/YUNIKORN-818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Manikandan R resolved YUNIKORN-818.
-----------------------------------
Fix Version/s: 1.0.0
Resolution: Fixed
> 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
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.0.0
>
>
> 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]