You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The confusion is caused by the fact that adding a value to the empty options changes the semantics of how node-config handles it, from a replacement to a merge. Someone familiar with the internals of YAML may figure this out, but a laymen could easily fall into this trap without understanding what's happening. The ambiguity of the YAML format itself leads to the confusion, so to your point, I don't expect a change.
However, it might be worth adding warning to the docs, similar to the warning that's already present about array replacement.
Describe the bug
Merging two YAML config files results in a null value if the last file has an empty key.
Example:
Result:
Expected behavior
I would intuitively expect that the empty key is treated the same as an empty object in JSON and merged.
Please tell us about your environment:
Other information
The text was updated successfully, but these errors were encountered: