make config tolerant to no value #445
-
Hello, I have been searching for a while to solve this problem if my config.yaml is
and my value file is
how can I make my config.yam tolerate not defining thank you Edit: I found a solution finally. One way to do it is to make a map of all the available keys in the value file since the value file is a struct using struct function
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @rafikt1992 👋 I see your edit and that you have found a solution 👍
|
Beta Was this translation helpful? Give feedback.
Hi @rafikt1992 👋
I see your edit and that you have found a solution 👍
Some helpful documentation for this question lives in our FAQ doc under the Data Values section.
One note is that
@ data.values
is already a struct, thus it has a function to test the existence of a key, this function ishasattr()
: