You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Manikandan R (Jira)" <ji...@apache.org> on 2021/08/24 14:47:00 UTC

[jira] [Resolved] (YUNIKORN-818) the response of REST APIs should use empty array rather than null

     [ 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: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org