mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(eventbridge): escape JSON Pointer field names (#7034)
This commit is contained in:
1 parent
08d7319b4f
commit
06d4fcfa57
2 files changed
+16
No files matched your search
@@ -451,6 +451,7 @@ public class EventBridgeInvoker {
|
||||
|
||||
private static String toPointer(String jsonPath) {
|
||||
return (jsonPath.startsWith("$") ? jsonPath.substring(1) : jsonPath)
|
||||
.replace("~", "~0").replace("/", "~1")
|
||||
.replaceAll("\\[(\\d+)\\]", "/$1").replace('.', '/');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user