{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-video/json-schema/api-video-captions-list-response-schema.json",
  "title": "VideoCaptions",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-video-captions-api-openapi.yml#/components/schemas/captions-list-response",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/caption"
      }
    },
    "pagination": {
      "$ref": "#/$defs/pagination"
    }
  },
  "required": [
    "data",
    "pagination"
  ],
  "$defs": {
    "caption": {
      "title": "Caption",
      "type": "object",
      "properties": {
        "uri": {
          "type": "string",
          "description": "The unique resource identifier of the uploaded caption."
        },
        "src": {
          "type": "string",
          "description": "A direct URL to the uploaded caption file."
        },
        "srclang": {
          "type": "string",
          "description": "Indicates the language of the uploaded caption file using IETF language tags."
        },
        "languageName": {
          "type": "string",
          "description": "Returns the native name of the caption language in UTF-8 encoding."
        },
        "default": {
          "type": "boolean",
          "description": "Whether you will have subtitles or not. True for yes you will have subtitles, false for no you will not have subtitles.",
          "default": false
        }
      }
    },
    "pagination": {
      "title": "Pagination",
      "required": [
        "links"
      ],
      "type": "object",
      "properties": {
        "itemsTotal": {
          "type": "integer",
          "description": "Total number of items that exist.",
          "readOnly": true
        },
        "pagesTotal": {
          "type": "integer",
          "description": "Number of items listed in the current page.",
          "readOnly": true
        },
        "pageSize": {
          "type": "integer",
          "description": "Maximum number of item per page.",
          "readOnly": true
        },
        "currentPage": {
          "type": "integer",
          "description": "The current page index.",
          "readOnly": true
        },
        "currentPageItems": {
          "type": "integer",
          "description": "The number of items on the current page.",
          "readOnly": true
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/pagination-link"
          }
        }
      }
    },
    "pagination-link": {
      "title": "PaginationLink",
      "type": "object",
      "properties": {
        "rel": {
          "type": "string"
        },
        "uri": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}