Open ghstahl opened 3 years ago
👋 Thanks for reporting!
A maintainer will take a look at your issue shortly. 👀
In the meantime: We are working on Viper v2 and we would love to hear your thoughts about what you like or don't like about Viper, so we can improve or fix those issues.
⏰ If you have a couple minutes, please take some time and share your thoughts: https://forms.gle/R6faU74qPRPAzchZ9
📣 If you've already given us your feedback, you can still help by spreading the news, either by sharing the above link or telling people about this on Twitter:
https://twitter.com/sagikazarmark/status/1306904078967074816
Thank you! ❤️
Given a fully merged config, I would like to update an item based upon a path to the item.
Assume the following JSON config.
should result in the following updates;
Describe alternatives you've considered reference project - viperEx
I was able to do this after the fact with the following technique
where I wrote a ViperEx helper that updated the AllSettings that viper owns. Arguably it is really more of a mapstructure thing that traverses maps, etc. The difference is really should this be a separate project vs being part of Viper.
This type of processing is part of the asp.net core configuration builder which is very similar in design to the viper design. So, I vote for being part of Viper.
On the viper side, the biggest issue I think is setting an item in an array. i.e.
This doesn't exist, but it should, especially when there is a getter that allows it.