-
Hey, I'm trying to detect typos in env variables used to set the config values in my program. I understand that providers don't know the expected keys (they're just providing a dict), the magic happens in One (awkward) idea is to deserialize to json, and then walk the json to generate the (flat) list of keys. Is there a more direct way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Try let figment = Figment::from(Serialized::defaults(MyConfig::default()));
dbg!(&figment.data()?[figment.profile()]); // or iterate over the keys here |
Beta Was this translation helpful? Give feedback.
Try