{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/my-tv-channel-com/json-schema/my-tv-channel-com-asset-schema.json",
  "title": "Asset",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/my-tv-channel-com-openapi.yaml#/components/schemas/Asset",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "channelId": {
      "type": "integer"
    },
    "title": {
      "type": "string"
    },
    "uploadStatus": {
      "type": "string",
      "enum": [
        "downloading",
        "pending",
        "transcoding",
        "ready",
        "error"
      ]
    },
    "durationSeconds": {
      "type": "number"
    },
    "weight": {
      "$ref": "#/$defs/Weight"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "duplicate": {
      "type": "boolean",
      "description": "Present and true when this URL had already been imported to this channel, in which case the original asset is returned rather than a new import being started."
    }
  },
  "$defs": {
    "Weight": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10,
      "default": 5,
      "description": "How often the video plays, relative to the others. `0` excludes it from scheduling without deleting it. Do not set everything to 10 — the *differences* between weights are what shape a channel."
    }
  }
}