Skip to content

Commit efc0a71

Browse files
committed
Enforce encoding of variables as object
1 parent 2591459 commit efc0a71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/PrunnerApiService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function schedulePipeline(PipelineName $pipeline, array $variables): JobI
7373
$response = $this->apiCall('POST', 'pipelines/schedule', json_encode([
7474
'pipeline' => $pipeline->getName(),
7575
'variables' => $variables
76-
]));
76+
], JSON_FORCE_OBJECT));
7777
if ($response->getStatusCode() !== 202) {
7878
throw new \RuntimeException('Scheduling a new pipeline run should have returned status code 202, but got: ' . $response->getStatusCode());
7979
}

0 commit comments

Comments
 (0)