Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Controller/AssistantApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public function getOutputFile(int $ocpTaskId, int $fileId): DataDownloadResponse
*
* @param int $fileId The input file ID
* @param string $taskTypeId The task type of the operation to perform
* @return DataResponse<Http::STATUS_OK, array{version: string, tooltip: string}, array{}>|DataResponse<Http::STATUS_BAD_REQUEST, array{error: string}, array{}>
* @return DataResponse<Http::STATUS_OK, array{version: float, tooltip: string}, array{}>|DataResponse<Http::STATUS_BAD_REQUEST, array{error: string}, array{}>
*
* 200: The task has been scheduled successfully
* 400: There was an issue while scheduling the task
Expand All @@ -440,7 +440,7 @@ public function runFileAction(int $fileId, string $taskTypeId): DataResponse {
}
}
return new DataResponse([
'version' => '0.1',
'version' => 0.1,
'tooltip' => $message,
]);
} catch (Exception|Throwable $e) {
Expand Down
3 changes: 2 additions & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2566,7 +2566,8 @@
],
"properties": {
"version": {
"type": "string"
"type": "number",
"format": "double"
},
"tooltip": {
"type": "string"
Expand Down