Skip to content

Commit

Permalink
update schema.json
Browse files Browse the repository at this point in the history
schema: require size, one of category/categorydesc, any of download/infohash/magnet

Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
  • Loading branch information
mynameisbogdan and ilike2burnthing committed Mar 17, 2024
1 parent 1dc3747 commit bec819f
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
30 changes: 30 additions & 0 deletions definitions/v7/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,38 @@
},
"required": [
"seeders",
"size",
"title"
],
"oneOf": [
{
"required": [
"category"
]
},
{
"required": [
"categorydesc"
]
}
],
"anyOf": [
{
"required": [
"download"
]
},
{
"required": [
"infohash"
]
},
{
"required": [
"magnet"
]
}
],
"title": "FieldsBlock"
},
"DownloadBlock": {
Expand Down
30 changes: 30 additions & 0 deletions definitions/v8/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,38 @@
},
"required": [
"seeders",
"size",
"title"
],
"oneOf": [
{
"required": [
"category"
]
},
{
"required": [
"categorydesc"
]
}
],
"anyOf": [
{
"required": [
"download"
]
},
{
"required": [
"infohash"
]
},
{
"required": [
"magnet"
]
}
],
"title": "FieldsBlock"
},
"DownloadBlock": {
Expand Down
30 changes: 30 additions & 0 deletions definitions/v9/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,38 @@
},
"required": [
"seeders",
"size",
"title"
],
"oneOf": [
{
"required": [
"category"
]
},
{
"required": [
"categorydesc"
]
}
],
"anyOf": [
{
"required": [
"download"
]
},
{
"required": [
"infohash"
]
},
{
"required": [
"magnet"
]
}
],
"title": "FieldsBlock"
},
"DownloadBlock": {
Expand Down

0 comments on commit bec819f

Please sign in to comment.