From 02b644021f07bccdfd65d89502f8861520a15984 Mon Sep 17 00:00:00 2001 From: kent Date: Sun, 21 Dec 2025 16:06:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Flow=20Tester=20JSONPath=20=EB=B0=B0?= =?UTF-8?q?=EC=97=B4=20=EC=9D=B8=EB=8D=B1=EC=8A=A4=20=ED=91=9C=EA=B8=B0?= =?UTF-8?q?=EB=B2=95=20=EC=A7=80=EC=9B=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ResponseValidator::getValueByPath()에서 [n] 표기법을 .n으로 변환 - 예: $.data.data[0].id → data.data.0.id - Laravel data_get() 헬퍼 호환성 확보 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Services/FlowTester/ResponseValidator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/FlowTester/ResponseValidator.php b/app/Services/FlowTester/ResponseValidator.php index b55cefd9..a2a8ab61 100644 --- a/app/Services/FlowTester/ResponseValidator.php +++ b/app/Services/FlowTester/ResponseValidator.php @@ -82,6 +82,10 @@ private function getValueByPath(array $data, string $path): mixed return $data; } + // JSONPath 배열 인덱스 표기법 [n]을 Laravel dot notation .n으로 변환 + // 예: data.data[0].id → data.data.0.id + $path = preg_replace('/\[(\d+)\]/', '.$1', $path); + return data_get($data, $path); }