fix openapi specs #72
Annotations
9 errors and 1 warning
Run coding standards check:
lib/Controller/ApiController.php#L147
lib/Controller/ApiController.php:147:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, list<array{active_members: list<array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, archived_ts: int, autoexport: string, balance: array<string, float>, categories: array<string, array{color: null|string, icon: null|string, id: int, name: null|string, order: int, projectid: string}>, categorysort: string, currencies: list<array{exchange_rate: float, id: int, name: string, projectid: string}>, currencyname: string, deletiondisabled: bool, email: null|string, id: int, lastchanged: int, members: list<array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, myaccesslevel: int, name: string, nb_bills: int, nb_trashbin_bills: int, paymentmodes: array<string, array{color: null|string, icon: null|string, id: int, name: null|string, order: int, projectid: string}>, paymentmodesort: string, shares: list<array{accesslevel: 0|1|2|3|4, circleid?: string, groupid?: string, id: int, label?: null|string, manually_added?: bool, name?: string, password?: null|string, token?: string, type: 'c'|'g'|'l'|'u', userid?: string}>, total_spent: float, userid: string}>, array<never, never>>' for OCA\Cospend\Controller\ApiController::getLocalProjects is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, mixed>, array<never, never>>' (see https://psalm.dev/070)
|
Run coding standards check:
lib/Controller/ApiController.php#L155
lib/Controller/ApiController.php:155:10: LessSpecificReturnStatement: The type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, mixed>, array<never, never>>' is more general than the declared return type 'OCP\AppFramework\Http\DataResponse<200, list<array{active_members: list<array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, archived_ts: int, autoexport: string, balance: array<string, float>, categories: array<string, array{color: null|string, icon: null|string, id: int, name: null|string, order: int, projectid: string}>, categorysort: string, currencies: list<array{exchange_rate: float, id: int, name: string, projectid: string}>, currencyname: string, deletiondisabled: bool, email: null|string, id: int, lastchanged: int, members: list<array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, myaccesslevel: int, name: string, nb_bills: int, nb_trashbin_bills: int, paymentmodes: array<string, array{color: null|string, icon: null|string, id: int, name: null|string, order: int, projectid: string}>, paymentmodesort: string, shares: list<array{accesslevel: 0|1|2|3|4, circleid?: string, groupid?: string, id: int, label?: null|string, manually_added?: bool, name?: string, password?: null|string, token?: string, type: 'c'|'g'|'l'|'u', userid?: string}>, total_spent: float, userid: string}>, array<never, never>>' for OCA\Cospend\Controller\ApiController::getLocalProjects (see https://psalm.dev/129)
|
Run coding standards check:
lib/Controller/PublicApiController.php#L459
lib/Controller/PublicApiController.php:459:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, list<array{date_orig: string, date_repeat: string, new_bill_id: int, project_name: string, what: string}>, array<never, never>>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>' for OCA\Cospend\Controller\PublicApiController::publicRepeatBill is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, mixed>, array<never, never>>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>' (see https://psalm.dev/070)
|
Run coding standards check:
lib/Controller/PublicApiController.php#L473
lib/Controller/PublicApiController.php:473:10: LessSpecificReturnStatement: The type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, mixed>, array<never, never>>' is more general than the declared return type 'OCP\AppFramework\Http\DataResponse<200, list<array{date_orig: string, date_repeat: string, new_bill_id: int, project_name: string, what: string}>, array<never, never>>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>' for OCA\Cospend\Controller\PublicApiController::publicRepeatBill (see https://psalm.dev/129)
|
Run coding standards check:
lib/Controller/PublicApiController.php#L586
lib/Controller/PublicApiController.php:586:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, array{allBillIds: list<int>, bills: list<array{amount: float, categoryid: int, comment: string, date: string, deleted: int, id: int, lastchanged: int, owerIds: list<int>, owers: list<array{activated: bool, id: int, name: string, weight: float}>, payer_id: int, paymentmode: string, paymentmodeid: int, repeat: 'b'|'d'|'m'|'n'|'s'|'w'|'y', repeatallactive: int, repeatfreq: int, repeatuntil: string, timestamp: int, what: string}>, nb_bills: int, timestamp: int}, array<never, never>>' for OCA\Cospend\Controller\PublicApiController::publicGetBills is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200, array{allBillIds: array<array-key, mixed>, bills: array<array-key, mixed>, nb_bills: int, timestamp: int}, array<never, never>>' (see https://psalm.dev/070)
|
Run coding standards check:
lib/Controller/PublicApiController.php#L623
lib/Controller/PublicApiController.php:623:10: LessSpecificReturnStatement: The type 'OCP\AppFramework\Http\DataResponse<200, array{allBillIds: array<array-key, mixed>, bills: array<array-key, mixed>, nb_bills: int, timestamp: int}, array<never, never>>' is more general than the declared return type 'OCP\AppFramework\Http\DataResponse<200, array{allBillIds: list<int>, bills: list<array{amount: float, categoryid: int, comment: string, date: string, deleted: int, id: int, lastchanged: int, owerIds: list<int>, owers: list<array{activated: bool, id: int, name: string, weight: float}>, payer_id: int, paymentmode: string, paymentmodeid: int, repeat: 'b'|'d'|'m'|'n'|'s'|'w'|'y', repeatallactive: int, repeatfreq: int, repeatuntil: string, timestamp: int, what: string}>, nb_bills: int, timestamp: int}, array<never, never>>' for OCA\Cospend\Controller\PublicApiController::publicGetBills (see https://psalm.dev/129)
|
Run coding standards check:
lib/Controller/PublicApiController.php#L653
lib/Controller/PublicApiController.php:653:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, list<array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, array<never, never>>' for OCA\Cospend\Controller\PublicApiController::publicGetMembers is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, mixed>, array<never, never>>' (see https://psalm.dev/070)
|
Run coding standards check:
lib/Controller/PublicApiController.php#L663
lib/Controller/PublicApiController.php:663:10: LessSpecificReturnStatement: The type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, mixed>, array<never, never>>' is more general than the declared return type 'OCP\AppFramework\Http\DataResponse<200, list<array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, array<never, never>>' for OCA\Cospend\Controller\PublicApiController::publicGetMembers (see https://psalm.dev/129)
|
Run coding standards check
Process completed with exit code 2.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading