diff --git a/lib/Controller/AssistantApiController.php b/lib/Controller/AssistantApiController.php index 859067c6..6f027072 100644 --- a/lib/Controller/AssistantApiController.php +++ b/lib/Controller/AssistantApiController.php @@ -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|DataResponse + * @return DataResponse|DataResponse * * 200: The task has been scheduled successfully * 400: There was an issue while scheduling the task @@ -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) { diff --git a/openapi.json b/openapi.json index 9639b2c7..f8c9d98f 100644 --- a/openapi.json +++ b/openapi.json @@ -2566,7 +2566,8 @@ ], "properties": { "version": { - "type": "string" + "type": "number", + "format": "double" }, "tooltip": { "type": "string"