Skip to content

Commit 0d40bd7

Browse files
authored
add channel schema (#309)
1 parent 6b9d9eb commit 0d40bd7

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

src/docs/api/common.json5

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,62 @@
6060
},
6161
},
6262
},
63+
channel: {
64+
type: 'object',
65+
properties: {
66+
id: {
67+
type: 'string',
68+
},
69+
createAt: {
70+
type: 'string',
71+
},
72+
lastNotedAt: {
73+
type: 'string',
74+
},
75+
name: {
76+
type: 'string',
77+
},
78+
description: {
79+
type: 'string',
80+
},
81+
bannerUrl: {
82+
type: 'string',
83+
},
84+
isArchived: {
85+
type: 'boolean',
86+
},
87+
notedCount: {
88+
type: 'number',
89+
},
90+
usersCount: {
91+
type: 'number',
92+
},
93+
isFollowing: {
94+
type: 'boolean',
95+
},
96+
isFavorite: {
97+
type: 'boolean',
98+
},
99+
userId: {
100+
type: 'string',
101+
},
102+
pinnedNoteIds: {
103+
type: 'array',
104+
items: {
105+
type: 'string',
106+
},
107+
},
108+
color: {
109+
type: 'string',
110+
},
111+
isSensitive: {
112+
type: 'boolean',
113+
},
114+
allowRenoteToExternal: {
115+
type: 'boolean',
116+
},
117+
}
118+
}
63119
},
64120
errors: {
65121
'1384574d-a912-4b81-8601-c7b1c4085df1': {

0 commit comments

Comments
 (0)