mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07:00
Nullability fixes
This commit is contained in:
parent
decae705e6
commit
228852cf53
1 changed files with 16 additions and 15 deletions
|
@ -244,23 +244,22 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"requested_subtitles": {
|
"requested_subtitles": {
|
||||||
"type": "object",
|
"type": [
|
||||||
|
"object",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": [
|
"type": "object",
|
||||||
"array",
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"$ref": "#/definitions/subtitle"
|
"$ref": "#/definitions/subtitle"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"automatic_captions": {
|
"automatic_captions": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": [
|
"type": "array",
|
||||||
"array",
|
"items": {
|
||||||
"null"
|
"$ref": "#/definitions/subtitle"
|
||||||
],
|
}
|
||||||
"$ref": "#/definitions/subtitle"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"playlist_index": {
|
"playlist_index": {
|
||||||
|
@ -636,9 +635,6 @@
|
||||||
"format": {
|
"format": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"id": "urn:jsonschema:youtube-dl-format",
|
"id": "urn:jsonschema:youtube-dl-format",
|
||||||
"required": [
|
|
||||||
"url"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"url": {
|
"url": {
|
||||||
"type": [
|
"type": [
|
||||||
|
@ -818,7 +814,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stretched_ratio": {
|
"stretched_ratio": {
|
||||||
"type": "number"
|
"type": [
|
||||||
|
"number",
|
||||||
|
"null"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"no_resume": {
|
"no_resume": {
|
||||||
"type": [
|
"type": [
|
||||||
|
@ -830,8 +829,10 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": [
|
"type": [
|
||||||
|
"object",
|
||||||
"string",
|
"string",
|
||||||
"null"
|
"number",
|
||||||
|
"boolean"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue