Tighten validateApiResponse for v2 array shape

This commit is contained in:
Keith Solomon
2026-08-03 13:13:50 -05:00
parent 3ebc5e2850
commit 07a8bba1d5
+1 -1
View File
@@ -100,7 +100,7 @@ function executeApiCall($apiEndpoint, $apiKey) {
*/ */
function validateApiResponse($responseData) { function validateApiResponse($responseData) {
if (!isset($responseData['log']) || !is_array($responseData['log'])) { if (!isset($responseData['log']) || !is_array($responseData['log'])) {
throw new ApiValidationException("Invalid log data received from the API."); throw new ApiValidationException('Invalid log data received from the API.');
} }
} }