Skip to content

Commit 150051b

Browse files
committed
fix(file-action): version number in the response is now a float
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 430035a commit 150051b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/Controller/AssistantApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public function getOutputFile(int $ocpTaskId, int $fileId): DataDownloadResponse
420420
*
421421
* @param int $fileId The input file ID
422422
* @param string $taskTypeId The task type of the operation to perform
423-
* @return DataResponse<Http::STATUS_OK, array{version: string, tooltip: string}, array{}>|DataResponse<Http::STATUS_BAD_REQUEST, array{error: string}, array{}>
423+
* @return DataResponse<Http::STATUS_OK, array{version: float, tooltip: string}, array{}>|DataResponse<Http::STATUS_BAD_REQUEST, array{error: string}, array{}>
424424
*
425425
* 200: The task has been scheduled successfully
426426
* 400: There was an issue while scheduling the task
@@ -440,7 +440,7 @@ public function runFileAction(int $fileId, string $taskTypeId): DataResponse {
440440
}
441441
}
442442
return new DataResponse([
443-
'version' => '0.1',
443+
'version' => 0.1,
444444
'tooltip' => $message,
445445
]);
446446
} catch (Exception|Throwable $e) {

openapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2566,7 +2566,8 @@
25662566
],
25672567
"properties": {
25682568
"version": {
2569-
"type": "string"
2569+
"type": "number",
2570+
"format": "double"
25702571
},
25712572
"tooltip": {
25722573
"type": "string"

0 commit comments

Comments
 (0)