Wilfred Spiegelenburg created YUNIKORN-1857:
-----------------------------------------------
Summary: [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
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: [email protected]
For additional commands, e-mail: [email protected]