Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarJsonPatch.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-09 09:54:23 +1100
committerGitHub <noreply@github.com>2024-03-09 09:54:23 +1100
commita6a1cc7f42d8ee55531ad87be70eafd46737166b (patch)
tree08d5ab229e1d66d262d01073eb2bf7a5dbb3f7c3 /source/core/StarJsonPatch.cpp
parent4c2e75b585ef366c6744b5e4e303c0fddff1fefd (diff)
parentc5e568e47c95ac8210a72effb2e3a24ebd90af1b (diff)
Merge pull request #29 from WasabiRaptor/json-patching
improvement to iterating through patch arrays
Diffstat (limited to 'source/core/StarJsonPatch.cpp')
-rw-r--r--source/core/StarJsonPatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/StarJsonPatch.cpp b/source/core/StarJsonPatch.cpp
index d8116eb..14505e5 100644
--- a/source/core/StarJsonPatch.cpp
+++ b/source/core/StarJsonPatch.cpp
@@ -44,7 +44,7 @@ namespace JsonPatching {
{"merge", std::bind(applyMergeOperation, _1, _2)},
};
- Json applyOperation(Json const& base, Json const& op) {
+ Json applyOperation(Json const& base, Json const& op, Maybe<Json> const& external) {
try {
auto operation = op.getString("op");
return JsonPatching::functionMap.get(operation)(base, op);