-
Notifications
You must be signed in to change notification settings - Fork 158
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
feature request: control merging behavior #62
Comments
Yep, the current behaviour is to overwrite the previous values in subsequent merges. To add type checks and other similar features, roughly:
|
Thank you for the quick response! |
Ah yes, makes sense. |
As I see it since the Possible solutions:
I'm up for number 3, WDYT? |
3 is the cleanest approach. We can bump the version to 1.0.0 after this. Long overdue. |
Merging between JSON and YAML will fail because of the |
When a user loads multiple YAML files that have the same key with different types the last type loaded is deciding the loaded type.
For example:
first.yml
second.yml
The loaded value into the key field will be
[1,2,3]
ifsecond.yml
will be loaded last.I would like to control the behavior that it could be "loss" with the current behavior and "strict" with type enforcing in the merge.
If it makes sense, I could try to work on it with some guidance 👍
Or if it already exists, I'd appreciate the 'how-to'.
The text was updated successfully, but these errors were encountered: