Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #4157.
JSON Replace ignores the document returned by
JSONPath.update(). Nested replacements mutate their parent, but a root query ($) returns a new document, leaving the original content unchanged.Retain the returned document in value and string replacement modes. Add real-SDK tests, document root queries and bump JSON Process to 0.0.10. The locked SDK remains 0.10.2; its declared range now includes the template's required
<0.11.0boundary.Release Notes
$, including string replacement with Decode Value enabled.Change Type
Screenshots / Videos
Actual tool results from the original source and the packaged fix:
{"before": 1}at$with decoded{"after": 2}{"before": 1}{"after": 2}beforewithafterin root JSON string"before""before""after"LLM Plugin Checklist
Not applicable.
Version
versioninmanifest.yaml.dify_plugin>=0.10.2,<0.11.0inpyproject.toml; regenerateduv.lockwithout changing dependency versions.Testing
jsonpath-ng==1.8.0./healthreturned 200 and both root replacement modes returned the expected results over HTTP. The same HTTP assertion fails on the unchanged base.git diff --checkpasses. The source's six existing Ruff diagnostics are identical on the immutable base and this branch.