Skip to content
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

Add json_merge script function #3554

Merged
merged 2 commits into from
Jan 14, 2025
Merged

Conversation

vladpaiu
Copy link
Member

Summary
Add json_merge script function

Details
When using provisioning things via JSON on a multi-layered approach it sometimes useful to merge the 'child' layer with the 'parent' layer for inheriting attributes that are not overwritten and for overwriting attributes that specifically come form the child ( patch ) layer.

Solution
Add json_merge script function

Compatibility
Backwards compatible

@vladpaiu vladpaiu added this to the 3.6-dev milestone Jan 10, 2025
@bogdan-iancu
Copy link
Member

@vladpaiu , thanks for the contribution here - could you check the failed test from the CI system and get them fixed please?

@bogdan-iancu bogdan-iancu self-assigned this Jan 13, 2025
@vladpaiu
Copy link
Member Author

all of the CI/CD failures are not related to this PR changes:

cachedb/cachedb_dict.c:481:31: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
481 | i += sprintf(obj+i, "%ld", pair->val.val.i64);

@bogdan-iancu bogdan-iancu merged commit 7a12c9b into OpenSIPS:master Jan 14, 2025
43 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants