Skip to content

Commit ed3a844

Browse files
authored
fix(backend): add response schema for notes/show-partial-bulk endpoint (#16093)
1 parent 0504d43 commit ed3a844

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

packages/backend/src/server/api/endpoints/notes/show-partial-bulk.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,26 @@ export const meta = {
1919
optional: false, nullable: false,
2020
items: {
2121
type: 'object',
22-
optional: false, nullable: false,
22+
properties: {
23+
id: {
24+
type: 'string',
25+
optional: false, nullable: false,
26+
},
27+
reactions: {
28+
type: 'object',
29+
optional: false, nullable: false,
30+
additionalProperties: {
31+
type: 'number',
32+
},
33+
},
34+
reactionEmojis: {
35+
type: 'object',
36+
optional: false, nullable: false,
37+
additionalProperties: {
38+
type: 'string',
39+
},
40+
},
41+
},
2342
},
2443
},
2544

packages/misskey-js/src/autogen/types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25919,7 +25919,15 @@ export type operations = {
2591925919
/** @description OK (with results) */
2592025920
200: {
2592125921
content: {
25922-
'application/json': Record<string, never>[];
25922+
'application/json': {
25923+
id: string;
25924+
reactions: {
25925+
[key: string]: number;
25926+
};
25927+
reactionEmojis: {
25928+
[key: string]: string;
25929+
};
25930+
}[];
2592325931
};
2592425932
};
2592525933
/** @description Client error */

0 commit comments

Comments
 (0)