You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "PoAn Yang (Jira)" <ji...@apache.org> on 2023/08/18 02:28:00 UTC

[jira] [Resolved] (YUNIKORN-1857) [UMBRELLA] use "omitempty" in json REST object definition

     [ https://issues.apache.org/jira/browse/YUNIKORN-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

PoAn Yang resolved YUNIKORN-1857.
---------------------------------
    Fix Version/s: 1.4.0
       Resolution: Fixed

> [UMBRELLA] use "omitempty" in json REST object definition
> ---------------------------------------------------------
>
>                 Key: YUNIKORN-1857
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1857
>             Project: Apache YuniKorn
>          Issue Type: Task
>          Components: core - common, webapp
>            Reporter: Wilfred Spiegelenburg
>            Assignee: PoAn Yang
>            Priority: Major
>             Fix For: 1.4.0
>
>
> None of the json definitions (DAO) use the option {{{}omitempty{}}}. Adding this allows removing on default values (like: 0, false, nil slices, maps and pointers)
> There is an impact on the code: the webapp needs to be able to handle missing entries and default them correctly.
> It also requires documentation updates as we currently can show empty values in the output.
> Third part is to extend this all the way into the k8shim cache that creates the cache dumps.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org