Skip to content

Commit 2977c71

Browse files
committed
style(openapi): format using prettier
1 parent adc1a40 commit 2977c71

File tree

1 file changed

+33
-99
lines changed

1 file changed

+33
-99
lines changed

openapi/openapi.json

Lines changed: 33 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@
3535
"paths": {
3636
"/exec": {
3737
"post": {
38-
"tags": [
39-
"download"
40-
],
38+
"tags": ["download"],
4139
"summary": "Add a new download in the pending state ready to be processed",
4240
"description": "Add a new download in the pending state ready to be processed",
4341
"operationId": "addDownload",
@@ -73,19 +71,14 @@
7371
},
7472
"security": [
7573
{
76-
"api_key": [
77-
"write:download",
78-
"read:download"
79-
]
74+
"api_key": ["write:download", "read:download"]
8075
}
8176
]
8277
}
8378
},
8479
"/execPlaylist": {
8580
"post": {
86-
"tags": [
87-
"download"
88-
],
81+
"tags": ["download"],
8982
"summary": "Add a new playlist download in the pending state ready to be processed",
9083
"description": "Add a new playlist download in the pending state ready to be processed",
9184
"operationId": "addDownloadPlaylist",
@@ -121,19 +114,14 @@
121114
},
122115
"security": [
123116
{
124-
"api_key": [
125-
"write:download",
126-
"read:download"
127-
]
117+
"api_key": ["write:download", "read:download"]
128118
}
129119
]
130120
}
131121
},
132122
"/execLivestream": {
133123
"post": {
134-
"tags": [
135-
"download"
136-
],
124+
"tags": ["download"],
137125
"summary": "Add a new livestream download in the pending state ready to be processed",
138126
"description": "Add a new livestream download in the pending state ready to be processed",
139127
"operationId": "addDwonloadLivestream",
@@ -169,19 +157,14 @@
169157
},
170158
"security": [
171159
{
172-
"api_key": [
173-
"write:download",
174-
"read:download"
175-
]
160+
"api_key": ["write:download", "read:download"]
176161
}
177162
]
178163
}
179164
},
180165
"/running": {
181166
"get": {
182-
"tags": [
183-
"download"
184-
],
167+
"tags": ["download"],
185168
"summary": "Returns all running and pending process",
186169
"description": "Returns all running and pending process",
187170
"operationId": "running",
@@ -208,10 +191,7 @@
208191
},
209192
"security": [
210193
{
211-
"api_key": [
212-
"write:download",
213-
"read:download"
214-
]
194+
"api_key": ["write:download", "read:download"]
215195
}
216196
]
217197
}
@@ -351,14 +331,16 @@
351331
},
352332
"/template/{id}": {
353333
"delete": {
354-
"parameters": [{
355-
"name": "id",
356-
"in": "path",
357-
"schema": {
358-
"type": "string"
359-
},
360-
"required": true
361-
}],
334+
"parameters": [
335+
{
336+
"name": "id",
337+
"in": "path",
338+
"schema": {
339+
"type": "string"
340+
},
341+
"required": true
342+
}
343+
],
362344
"responses": {
363345
"200": {
364346
"description": "Successful operation",
@@ -389,9 +371,7 @@
389371
"url": {
390372
"type": "string",
391373
"format": "uri",
392-
"examples": [
393-
"https://..."
394-
]
374+
"examples": ["https://..."]
395375
},
396376
"path": {
397377
"type": "string"
@@ -404,12 +384,7 @@
404384
"items": {
405385
"type": "string"
406386
},
407-
"examples": [
408-
"-N",
409-
"4",
410-
"-R",
411-
"infinite"
412-
]
387+
"examples": ["-N", "4", "-R", "infinite"]
413388
}
414389
}
415390
},
@@ -418,21 +393,14 @@
418393
"properties": {
419394
"url": {
420395
"type": "string",
421-
"examples": [
422-
"https://..."
423-
]
396+
"examples": ["https://..."]
424397
},
425398
"params": {
426399
"type": "array",
427400
"items": {
428401
"type": "string"
429402
},
430-
"examples": [
431-
"-N",
432-
"4",
433-
"-R",
434-
"infinite"
435-
]
403+
"examples": ["-N", "4", "-R", "infinite"]
436404
}
437405
}
438406
},
@@ -441,40 +409,24 @@
441409
"properties": {
442410
"process_status": {
443411
"type": "integer",
444-
"examples": [
445-
0,
446-
1,
447-
2,
448-
3
449-
]
412+
"examples": [0, 1, 2, 3]
450413
},
451414
"percentage": {
452415
"type": "string",
453-
"examples": [
454-
"50%"
455-
]
416+
"examples": ["50%"]
456417
},
457418
"speed": {
458419
"type": "number",
459420
"format": "float",
460-
"examples": [
461-
7289347
462-
]
421+
"examples": [7289347]
463422
},
464423
"eta": {
465424
"type": "number",
466425
"format": "float",
467-
"examples": [
468-
3600
469-
]
426+
"examples": [3600]
470427
}
471428
},
472-
"required": [
473-
"process_status",
474-
"percentage",
475-
"speed",
476-
"eta"
477-
]
429+
"required": ["process_status", "percentage", "speed", "eta"]
478430
},
479431
"DownloadInfo": {
480432
"type": "object",
@@ -537,11 +489,7 @@
537489
"type": "string"
538490
}
539491
},
540-
"required": [
541-
"path",
542-
"filename",
543-
"savedFilePath"
544-
]
492+
"required": ["path", "filename", "savedFilePath"]
545493
},
546494
"ProcessResponse": {
547495
"type": "object",
@@ -562,12 +510,7 @@
562510
}
563511
}
564512
},
565-
"required": [
566-
"progress",
567-
"info",
568-
"output",
569-
"params"
570-
]
513+
"required": ["progress", "info", "output", "params"]
571514
},
572515
"GetVersionResponse": {
573516
"type": "object",
@@ -579,10 +522,7 @@
579522
"type": "string"
580523
}
581524
},
582-
"required": [
583-
"rpcVersion",
584-
"ytdlpVersion"
585-
]
525+
"required": ["rpcVersion", "ytdlpVersion"]
586526
},
587527
"SetCookiesRequest": {
588528
"type": "object",
@@ -591,9 +531,7 @@
591531
"type": "string"
592532
}
593533
},
594-
"required": [
595-
"cookies"
596-
]
534+
"required": ["cookies"]
597535
},
598536
"CustomTemplate": {
599537
"type": "object",
@@ -610,11 +548,7 @@
610548
"minLength": 1
611549
}
612550
},
613-
"required": [
614-
"id",
615-
"name",
616-
"content"
617-
]
551+
"required": ["id", "name", "content"]
618552
}
619553
},
620554
"securitySchemes": {
@@ -625,4 +559,4 @@
625559
}
626560
}
627561
}
628-
}
562+
}

0 commit comments

Comments
 (0)