File tree 3 files changed +65
-54
lines changed
3 files changed +65
-54
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ components:
116
116
type : string
117
117
type :
118
118
anyOf :
119
- - const : 0
119
+ - enum :
120
+ - 0
120
121
type : number
121
122
- enum :
122
123
- 1
@@ -1090,8 +1091,7 @@ paths:
1090
1091
replyTo :
1091
1092
default : 0
1092
1093
description : 被回复的 topic ID, `0` 代表回复楼主
1093
- examples :
1094
- - 0
1094
+ example : 0
1095
1095
type : integer
1096
1096
required :
1097
1097
- content
@@ -1750,14 +1750,11 @@ paths:
1750
1750
properties :
1751
1751
date :
1752
1752
description : YYYY-MM-DD
1753
- examples :
1754
- - ' 2022-02-02'
1753
+ example : ' 2022-02-02'
1755
1754
pattern : ^\d{4}-\d{2}-\d{2}$
1756
1755
type : string
1757
1756
duration :
1758
- examples :
1759
- - ' 24:53'
1760
- - 24m52s
1757
+ example : ' 24:53'
1761
1758
type : string
1762
1759
ep :
1763
1760
type : number
@@ -1769,7 +1766,8 @@ paths:
1769
1766
type : string
1770
1767
type :
1771
1768
anyOf :
1772
- - const : 0
1769
+ - enum :
1770
+ - 0
1773
1771
type : number
1774
1772
- enum :
1775
1773
- 1
@@ -1926,46 +1924,44 @@ paths:
1926
1924
minLength : 1
1927
1925
type : string
1928
1926
subject :
1929
- examples :
1930
- - infobox : |-
1931
- {{Infobox animanga/TVAnime
1932
- |中文名= 沙盒
1933
- |别名={
1934
- }
1935
- |话数= 7
1936
- |放送开始= 0000-10-06
1937
- |放送星期=
1938
- |官方网站=
1939
- |播放电视台=
1940
- |其他电视台=
1941
- |播放结束=
1942
- |其他=
1943
- |Copyright=
1944
- |平台={
1945
- [龟壳]
1946
- [Xbox Series S]
1947
- [Xbox Series X]
1948
- [Xbox Series X/S]
1949
- [PC]
1950
- [Xbox Series X|S]
1951
- }
1952
- }}
1953
- name: 沙盒
1954
- nsfw: false
1955
- platform: 0
1956
- summary: >-
1957
- 本条目是一个沙盒,可以用于尝试bgm功能。
1927
+ example :
1928
+ infobox : |-
1929
+ {{Infobox animanga/TVAnime
1930
+ |中文名= 沙盒
1931
+ |别名={
1932
+ }
1933
+ |话数= 7
1934
+ |放送开始= 0000-10-06
1935
+ |放送星期=
1936
+ |官方网站=
1937
+ |播放电视台=
1938
+ |其他电视台=
1939
+ |播放结束=
1940
+ |其他=
1941
+ |Copyright=
1942
+ |平台={
1943
+ [龟壳]
1944
+ [Xbox Series S]
1945
+ [Xbox Series X]
1946
+ [Xbox Series X/S]
1947
+ [PC]
1948
+ [Xbox Series X|S]
1949
+ }
1950
+ }}
1951
+ name : 沙盒
1952
+ nsfw : false
1953
+ platform : 0
1954
+ summary : >-
1955
+ 本条目是一个沙盒,可以用于尝试bgm功能。
1958
1956
1959
1957
1960
- 普通维基人可以随意编辑条目信息以及相关关联查看编辑效果,但是请不要完全删除沙盒说明并且不要关联非沙盒条目/人物/角色。
1958
+ 普通维基人可以随意编辑条目信息以及相关关联查看编辑效果,但是请不要完全删除沙盒说明并且不要关联非沙盒条目/人物/角色。
1961
1959
1962
1960
1963
- https://bgm.tv/group/topic/366812#post_1923517
1961
+ https://bgm.tv/group/topic/366812#post_1923517
1964
1962
properties :
1965
1963
date :
1966
- examples :
1967
- - ' 0000-00-00'
1968
- - ' 2007-01-30'
1964
+ example : ' 0000-00-00'
1969
1965
pattern : ^\d{4}-\d{2}-\d{2}$
1970
1966
type : string
1971
1967
infobox :
@@ -2130,8 +2126,7 @@ paths:
2130
2126
large :
2131
2127
type : string
2132
2128
medium :
2133
- examples :
2134
- - sai
2129
+ example : sai
2135
2130
type : string
2136
2131
small :
2137
2132
type : string
@@ -2142,20 +2137,17 @@ paths:
2142
2137
title : Avatar
2143
2138
type : object
2144
2139
id :
2145
- examples :
2146
- - 1
2140
+ example : 1
2147
2141
type : integer
2148
2142
nickname :
2149
- examples :
2150
- - Sai🖖
2143
+ example : Sai🖖
2151
2144
type : string
2152
2145
sign :
2153
2146
type : string
2154
2147
user_group :
2155
2148
type : integer
2156
2149
username :
2157
- examples :
2158
- - sai
2150
+ example : sai
2159
2151
type : string
2160
2152
required :
2161
2153
- id
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ export type EpisodeWikiInfo = {
190
190
name : string ;
191
191
nameCN : string ;
192
192
summary : string ;
193
- type : number | 1 | 2 | 3 | 4 | 5 | 6 ;
193
+ type : 0 | 1 | 2 | 3 | 4 | 5 | 6 ;
194
194
} ;
195
195
export type WikiPlatform = {
196
196
id : number ;
@@ -756,7 +756,7 @@ export function patchEpisodeWikiInfo(
756
756
name ?: string ;
757
757
nameCN ?: string ;
758
758
summary ?: string ;
759
- type ?: number | 1 | 2 | 3 | 4 | 5 | 6 ;
759
+ type ?: 0 | 1 | 2 | 3 | 4 | 5 | 6 ;
760
760
} ;
761
761
} ,
762
762
opts ?: Oazapfts . RequestOpts ,
Original file line number Diff line number Diff line change @@ -579,6 +579,7 @@ export interface operations {
579
579
/**
580
580
* @description 被回复的 topic ID, `0` 代表回复楼主
581
581
* @default 0
582
+ * @example 0
582
583
*/
583
584
replyTo ?: number ;
584
585
} ;
@@ -976,8 +977,12 @@ export interface operations {
976
977
'application/json' : {
977
978
commitMessage : string ;
978
979
episode : {
979
- /** @description YYYY-MM-DD */
980
+ /**
981
+ * @description YYYY-MM-DD
982
+ * @example 2022-02-02
983
+ */
980
984
date ?: string ;
985
+ /** @example 24:53 */
981
986
duration ?: string ;
982
987
ep ?: number ;
983
988
name ?: string ;
@@ -1117,7 +1122,17 @@ export interface operations {
1117
1122
*/
1118
1123
'application/json' : {
1119
1124
commitMessage : string ;
1125
+ /**
1126
+ * @example {
1127
+ * "infobox": "{{Infobox animanga/TVAnime\n|中文名= 沙盒\n|别名={\n}\n|话数= 7\n|放送开始= 0000-10-06\n|放送星期= \n|官方网站= \n|播放电视台= \n|其他电视台= \n|播放结束= \n|其他= \n|Copyright= \n|平台={\n[龟壳]\n[Xbox Series S]\n[Xbox Series X]\n[Xbox Series X/S]\n[PC]\n[Xbox Series X|S]\n}\n }}",
1128
+ * "name": "沙盒",
1129
+ * "nsfw": false,
1130
+ * "platform": 0,
1131
+ * "summary": "本条目是一个沙盒,可以用于尝试bgm功能。\n\n普通维基人可以随意编辑条目信息以及相关关联查看编辑效果,但是请不要完全删除沙盒说明并且不要关联非沙盒条目/人物/角色。\n\nhttps://bgm.tv/group/topic/366812#post_1923517"
1132
+ * }
1133
+ */
1120
1134
subject : {
1135
+ /** @example 0000-00-00 */
1121
1136
date ?: string ;
1122
1137
infobox ?: string ;
1123
1138
name ?: string ;
@@ -1163,13 +1178,17 @@ export interface operations {
1163
1178
/** Avatar */
1164
1179
avatar : {
1165
1180
large : string ;
1181
+ /** @example sai */
1166
1182
medium : string ;
1167
1183
small : string ;
1168
1184
} ;
1185
+ /** @example 1 */
1169
1186
id : number ;
1187
+ /** @example Sai🖖 */
1170
1188
nickname : string ;
1171
1189
sign : string ;
1172
1190
user_group : number ;
1191
+ /** @example sai */
1173
1192
username : string ;
1174
1193
} ;
1175
1194
id : number ;
You can’t perform that action at this time.
0 commit comments