I have been trying to get some values from the envvars and I would like to have some default values in case the variable is not found. For that purpose, I've been using the missing value indicator ??? alongside oc.decode to retrieve any potential value, but the ??? is returned as a string and doesn't throw MissingMandatoryValue exception.
Describe the bug
I have been trying to get some values from the envvars and I would like to have some default values in case the variable is not found. For that purpose, I've been using the missing value indicator
???
alongsideoc.decode
to retrieve any potential value, but the???
is returned as a string and doesn't throwMissingMandatoryValue
exception.To Reproduce
Expected behavior Accessing
cfg.my_key
should throwMissingMandatoryValue
.Additional context