Added required fields for playlist

This commit is contained in:
Alexander Biryukov 2019-07-18 19:19:35 +03:00
parent bc3c190039
commit be3022cea4

View File

@ -1,4 +1,5 @@
{ {
"$schema": "http://json-schema.org/schema#",
"title": "Youtube-dl JSON output schema", "title": "Youtube-dl JSON output schema",
"description": "This schema is produced when youtube-dl -J is invoked", "description": "This schema is produced when youtube-dl -J is invoked",
"definitions": { "definitions": {
@ -26,26 +27,13 @@
}, },
"playlist": { "playlist": {
"type": "object", "type": "object",
"required": [
"id",
"title",
"entries"
],
"properties": { "properties": {
"uploader_url": { "id": {
"type": [
"string",
"null"
]
},
"uploader": {
"type": [
"string",
"null"
]
},
"extractor_key": {
"type": [
"string",
"null"
]
},
"extractor": {
"type": [ "type": [
"string", "string",
"null" "null"
@ -57,7 +45,7 @@
"null" "null"
] ]
}, },
"uploader_id": { "webpage_url": {
"type": [ "type": [
"string", "string",
"null" "null"
@ -69,13 +57,31 @@
"null" "null"
] ]
}, },
"id": { "uploader": {
"type": [ "type": [
"string", "string",
"null" "null"
] ]
}, },
"webpage_url": { "uploader_id": {
"type": [
"string",
"null"
]
},
"uploader_url": {
"type": [
"string",
"null"
]
},
"extractor": {
"type": [
"string",
"null"
]
},
"extractor_key": {
"type": [ "type": [
"string", "string",
"null" "null"