fix: Flow Tester JSONPath 배열 인덱스 표기법 지원

- 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 <noreply@anthropic.com>
This commit is contained in:
2025-12-21 16:06:14 +09:00
parent 2409206a63
commit 02b644021f

View File

@@ -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);
}