Skip to content

Commit

Permalink
generate openapi specs
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Dec 21, 2024
1 parent ac40620 commit ca3102e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Controller/AssistantApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function notifyWhenReady(int $ocpTaskId): DataResponse {
*
* Get all available task types that the assistant can handle.
*
* @return DataResponse<Http::STATUS_OK, array{types: array<AssistantTaskProcessingTaskType>}, array{}>
* @return DataResponse<Http::STATUS_OK, array{types: list<AssistantTaskProcessingTaskType>}, array{}>

Check failure on line 79 in lib/Controller/AssistantApiController.php

View workflow job for this annotation

GitHub Actions / Psalm check

MoreSpecificReturnType

lib/Controller/AssistantApiController.php:79:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, array{types: list<array{description: string, id: string, inputShape: array<string, array{description: string, name: string, type: string}>, name: string, optionalInputShape: array<string, array{description: string, name: string, type: string}>, optionalOutputShape: array<string, array{description: string, name: string, type: string}>, outputShape: array<string, array{description: string, name: string, type: string}>, priority: int}>}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getAvailableTaskTypes is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200, array{types: array<array-key, array{description: string, id: string, inputShape: array<string, array{description: string, name: string, type: string}>, name: string, optionalInputShape: array<string, array{description: string, name: string, type: string}>, optionalOutputShape: array<string, array{description: string, name: string, type: string}>, outputShape: array<string, array{description: string, name: string, type: string}>, priority: int}>}, array<never, never>>' (see https://psalm.dev/070)
*
* 200: Available task types returned
*/
Expand All @@ -94,7 +94,7 @@ public function getAvailableTaskTypes(): DataResponse {
* Get a list of assistant tasks for the current user.
*
* @param string|null $taskTypeId Task type id. If null, tasks of all task types will be retrieved
* @return DataResponse<Http::STATUS_OK, array{tasks: array<AssistantTaskProcessingTask>}, array{}>|DataResponse<Http::STATUS_NOT_FOUND, '', array{}>
* @return DataResponse<Http::STATUS_OK, array{tasks: list<AssistantTaskProcessingTask>}, array{}>|DataResponse<Http::STATUS_NOT_FOUND, '', array{}>

Check failure on line 97 in lib/Controller/AssistantApiController.php

View workflow job for this annotation

GitHub Actions / Psalm check

MoreSpecificReturnType

lib/Controller/AssistantApiController.php:97:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, array{tasks: list<array{appId: string, completionExpectedAt: int|null, customId: null|string, endedAt: int|null, id: int, input: array<string, list<numeric|string>|numeric|string>, lastUpdated: int, output: array<string, list<numeric|string>|numeric|string>|null, progress: float|null, scheduledAt: int|null, startedAt: int|null, status: string, type: string, userId: null|string}>}, array<never, never>>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getUserTasks is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200, array{tasks: array<array-key, array{appId: string, completionExpectedAt: int|null, customId: null|string, endedAt: int|null, id: int, input: array<string, list<numeric|string>|numeric|string>, lastUpdated: int, output: array<string, list<numeric|string>|numeric|string>|null, progress: float|null, scheduledAt: int|null, startedAt: int|null, status: 'STATUS_CANCELLED'|'STATUS_FAILED'|'STATUS_RUNNING'|'STATUS_SCHEDULED'|'STATUS_SUCCESSFUL'|'STATUS_UNKNOWN', type: string, userId: null|string}>}, array<never, never>>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>' (see https://psalm.dev/070)
*
* 200: User tasks returned
* 404: No tasks found
Expand Down

0 comments on commit ca3102e

Please sign in to comment.