{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prowlarr/json-schema/prowlarr-release-resource-schema.json",
  "title": "ReleaseResource",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prowlarr-openapi.json#/components/schemas/ReleaseResource",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "guid": {
      "type": [
        "string",
        "null"
      ]
    },
    "age": {
      "type": "integer",
      "format": "int32"
    },
    "ageHours": {
      "type": "number",
      "format": "double"
    },
    "ageMinutes": {
      "type": "number",
      "format": "double"
    },
    "size": {
      "type": "integer",
      "format": "int64"
    },
    "files": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "grabs": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "indexerId": {
      "type": "integer",
      "format": "int32"
    },
    "indexer": {
      "type": [
        "string",
        "null"
      ]
    },
    "subGroup": {
      "type": [
        "string",
        "null"
      ]
    },
    "releaseHash": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "sortTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "imdbId": {
      "type": "integer",
      "format": "int32"
    },
    "tmdbId": {
      "type": "integer",
      "format": "int32"
    },
    "tvdbId": {
      "type": "integer",
      "format": "int32"
    },
    "tvMazeId": {
      "type": "integer",
      "format": "int32"
    },
    "publishDate": {
      "type": "string",
      "format": "date-time"
    },
    "commentUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "downloadUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "infoUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "posterUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "indexerFlags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "categories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/IndexerCategory"
      }
    },
    "magnetUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "infoHash": {
      "type": [
        "string",
        "null"
      ]
    },
    "seeders": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "leechers": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "protocol": {
      "$ref": "#/$defs/DownloadProtocol"
    },
    "fileName": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "downloadClientId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "DownloadProtocol": {
      "enum": [
        "unknown",
        "usenet",
        "torrent"
      ],
      "type": "string"
    },
    "IndexerCategory": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "subCategories": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/IndexerCategory"
          },
          "readOnly": true
        }
      },
      "additionalProperties": false
    }
  }
}