From be3022cea40de12d6c7906e8db473bce1ae0f5ec Mon Sep 17 00:00:00 2001 From: Alexander Biryukov Date: Thu, 18 Jul 2019 19:19:35 +0300 Subject: [PATCH] Added required fields for playlist --- docs/schema.json | 50 +++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/docs/schema.json b/docs/schema.json index 3d8fa1742..72cfd580a 100644 --- a/docs/schema.json +++ b/docs/schema.json @@ -1,4 +1,5 @@ { + "$schema": "http://json-schema.org/schema#", "title": "Youtube-dl JSON output schema", "description": "This schema is produced when youtube-dl -J is invoked", "definitions": { @@ -26,26 +27,13 @@ }, "playlist": { "type": "object", + "required": [ + "id", + "title", + "entries" + ], "properties": { - "uploader_url": { - "type": [ - "string", - "null" - ] - }, - "uploader": { - "type": [ - "string", - "null" - ] - }, - "extractor_key": { - "type": [ - "string", - "null" - ] - }, - "extractor": { + "id": { "type": [ "string", "null" @@ -57,7 +45,7 @@ "null" ] }, - "uploader_id": { + "webpage_url": { "type": [ "string", "null" @@ -69,13 +57,31 @@ "null" ] }, - "id": { + "uploader": { "type": [ "string", "null" ] }, - "webpage_url": { + "uploader_id": { + "type": [ + "string", + "null" + ] + }, + "uploader_url": { + "type": [ + "string", + "null" + ] + }, + "extractor": { + "type": [ + "string", + "null" + ] + }, + "extractor_key": { "type": [ "string", "null"