-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support subsets from a Config #981
Comments
I think this is a good feature. The current internal APIs are not very friendly to this kind of approach though. It might be worth shaking things up internally because the same restrictions that make this feature hard to implement also make the config mapper very complex to implement, so addressing this might pay off in multiple areas. |
Thanks for the work @gastaldi This is a very valid feature, and we should have it. On the other hand, I think we lose a lot of its potential by returning a Yes, right now, we cannot do that, but I'm also thinking for a while that I know that these can happen separately, but how about if we do this work here too? Or, you don't think we need to separate the |
Having We could return a |
Do you want to have fun with it? Or do you prefer to do it as a separate PR? :) |
I'll add to my never-ending TODO list :) Better make it as a separate PR to make sure we don't break anything ;) |
If we're not immediately planning on breaking compatibility, I would recommend adding a new interface which is implemented by |
Because the
Config
interface has a nice way to convert values and handle optional values, it would be nice if the API allowed to extract a subset of aConfig
to pass it as a parameter to methods that don't care about the external structure:Eg.
The text was updated successfully, but these errors were encountered: