-
Notifications
You must be signed in to change notification settings - Fork 22
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
New Merge Method proposal #36
Comments
Hello. Would you please be so kind and provide me a patch / diff ? |
Index: hiyapyco/init.py
|
My comment above is proposed patch. Sorry for formatting issues. |
sorry, I need something usable. |
You should be more clear about this. Uploading patch as attachment. |
Please, see #37 |
I don't want to list to be merged, I want them to be replaced. My use case is the following: I have config.yml and config-dev.yml, etc (dev is profile). I want default configuration to be taken from config.yml and if I use dev profile appropriate configuration I want to be overridden by config-dev.yml. Spring Boot (this is Framework in Java) don't merge lists, it replaces them, so I want to mimic this behavior. #36
PR #37 merged |
I've change your deep merge method to make another merge variant.
I don't want to list to be merge, I want them to be replaced.
My use case is the following: I have config.yml and config-dev.yml, etc (dev is profile). I want default configuration to be taken from config.yml and if I use dev profile appropriate configuration I want to be overridden by config-dev.yml. Spring Boot (this is Framework in Java) don't merge lists, it replaces them, so I want to mimic this behavior.
It will be nice, if you will incorporate this change in your code base. Thanks.
This is my variant of hiyapyco.HiYaPyCo.__deepmerge:
The text was updated successfully, but these errors were encountered: