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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user