{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prowlarr/json-schema/prowlarr-log-resource-paging-resource-schema.json",
  "title": "LogResourcePagingResource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prowlarr-log-api-openapi.yml#/components/schemas/LogResourcePagingResource",
  "type": "object",
  "properties": {
    "page": {
      "type": "integer",
      "format": "int32"
    },
    "pageSize": {
      "type": "integer",
      "format": "int32"
    },
    "sortKey": {
      "type": [
        "string",
        "null"
      ]
    },
    "sortDirection": {
      "$ref": "#/$defs/SortDirection"
    },
    "totalRecords": {
      "type": "integer",
      "format": "int32"
    },
    "records": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/LogResource"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "LogResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "time": {
          "type": "string",
          "format": "date-time"
        },
        "exception": {
          "type": [
            "string",
            "null"
          ]
        },
        "exceptionType": {
          "type": [
            "string",
            "null"
          ]
        },
        "level": {
          "type": [
            "string",
            "null"
          ]
        },
        "logger": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "method": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "SortDirection": {
      "enum": [
        "default",
        "ascending",
        "descending"
      ],
      "type": "string"
    }
  }
}