Skip to content

Commit 532047d

Browse files
committed
fix: openapi
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
1 parent 02dc9f4 commit 532047d

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

lib/Controller/Api1Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function createTable(string $title, ?string $emoji, string $template = 'c
149149
* returns table scheme
150150
*
151151
* @param int $tableId Table ID
152-
* @return JSONResponse<Http::STATUS_OK, mixed, array{'Content-Disposition': string, 'Content-Type': string}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
152+
* @return JSONResponse<Http::STATUS_OK, array<string, mixed>, array{'Content-Disposition': string, 'Content-Type': string}>|DataResponse<Http::STATUS_FORBIDDEN|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
153153
*
154154
* 200: Scheme returned
155155
* 403: No permissions

openapi.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,10 @@
13831383
"content": {
13841384
"application/json": {
13851385
"schema": {
1386-
"type": "object"
1386+
"type": "object",
1387+
"additionalProperties": {
1388+
"type": "object"
1389+
}
13871390
}
13881391
}
13891392
}

src/types/openapi/openapi.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,9 @@ export interface operations {
14061406
readonly [name: string]: unknown;
14071407
};
14081408
content: {
1409-
readonly "application/json": Record<string, never>;
1409+
readonly "application/json": {
1410+
readonly [key: string]: Record<string, never>;
1411+
};
14101412
};
14111413
};
14121414
/** @description Current user is not logged in */

0 commit comments

Comments
 (0)