{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/desaira-com/json-schema/desaira-com-video-schema.json",
  "title": "Video",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/desaira-com-openapi.json#/components/schemas/Video",
  "properties": {
    "avatar_url": {
      "description": "Creator avatar",
      "format": "uri",
      "type": "string"
    },
    "comments": {
      "type": "integer"
    },
    "content_rating": {
      "description": "Site-level maturity rating ('adult' or 'general')",
      "enum": [
        "adult",
        "general"
      ],
      "type": "string"
    },
    "cover_url": {
      "description": "Cover image JPG",
      "format": "uri",
      "type": "string"
    },
    "created_at": {
      "format": "date-time",
      "type": "string"
    },
    "description": {
      "description": "Video caption including hashtags",
      "type": "string"
    },
    "duration": {
      "description": "Duration in seconds",
      "type": "number"
    },
    "hash": {
      "description": "Unique video identifier (hex)",
      "type": "string"
    },
    "is_ai": {
      "description": "AI-generated content flag",
      "type": "boolean"
    },
    "likes": {
      "type": "integer"
    },
    "preview_url": {
      "description": "Thumbnail/preview JPG",
      "format": "uri",
      "type": "string"
    },
    "saves": {
      "type": "integer"
    },
    "shares": {
      "type": "integer"
    },
    "slug_url": {
      "description": "SEO-friendly site URL path",
      "type": "string"
    },
    "tags": {
      "description": "Hashtag names",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "username": {
      "description": "Creator username",
      "type": "string"
    },
    "video_url": {
      "description": "Direct MP4 URL",
      "format": "uri",
      "type": "string"
    },
    "views": {
      "type": "integer"
    }
  },
  "type": "object"
}