diff --git a/definitions/v7/schema.json b/definitions/v7/schema.json index 9e6a506a7..d6e28f29a 100644 --- a/definitions/v7/schema.json +++ b/definitions/v7/schema.json @@ -666,8 +666,38 @@ }, "required": [ "seeders", + "size", "title" ], + "oneOf": [ + { + "required": [ + "category" + ] + }, + { + "required": [ + "categorydesc" + ] + } + ], + "anyOf": [ + { + "required": [ + "download" + ] + }, + { + "required": [ + "infohash" + ] + }, + { + "required": [ + "magnet" + ] + } + ], "title": "FieldsBlock" }, "DownloadBlock": { diff --git a/definitions/v8/schema.json b/definitions/v8/schema.json index 9489d1684..1864aed30 100644 --- a/definitions/v8/schema.json +++ b/definitions/v8/schema.json @@ -666,8 +666,38 @@ }, "required": [ "seeders", + "size", "title" ], + "oneOf": [ + { + "required": [ + "category" + ] + }, + { + "required": [ + "categorydesc" + ] + } + ], + "anyOf": [ + { + "required": [ + "download" + ] + }, + { + "required": [ + "infohash" + ] + }, + { + "required": [ + "magnet" + ] + } + ], "title": "FieldsBlock" }, "DownloadBlock": { diff --git a/definitions/v9/schema.json b/definitions/v9/schema.json index bdb7033d2..58b26e444 100644 --- a/definitions/v9/schema.json +++ b/definitions/v9/schema.json @@ -707,8 +707,38 @@ }, "required": [ "seeders", + "size", "title" ], + "oneOf": [ + { + "required": [ + "category" + ] + }, + { + "required": [ + "categorydesc" + ] + } + ], + "anyOf": [ + { + "required": [ + "download" + ] + }, + { + "required": [ + "infohash" + ] + }, + { + "required": [ + "magnet" + ] + } + ], "title": "FieldsBlock" }, "DownloadBlock": {