{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "MiniMax H3 Cases & Guides case",
  "type": "object",
  "required": [
    "id", "title", "titleEn", "summary", "summaryEn", "model", "mode", "prompt", "sourceUrl", "mediaUrl", "author", "posterUrl",
    "category", "styles", "scenes", "inputTypes", "promptProvenance", "verified", "duration", "resolution", "aspectRatio", "publishedAt", "addedAt"
  ],
  "properties": {
    "id": { "type": "string", "minLength": 3 },
    "title": { "type": "string", "minLength": 1, "pattern": "^[^@]*$" },
    "titleEn": { "type": "string", "minLength": 1, "pattern": "^[^@]*$" },
    "summary": { "type": "string", "minLength": 1, "pattern": "^[^@]*$" },
    "summaryEn": { "type": "string", "minLength": 1, "pattern": "^[^@]*$" },
    "model": { "type": "string" },
    "mode": { "enum": ["T2VA", "FL2VA", "Ref2VA", "Unknown"] },
    "prompt": { "type": ["string", "null"], "minLength": 1 },
    "promptCompleteness": { "const": "complete" },
    "mediaUrl": { "type": "string", "pattern": "^/media/[a-zA-Z0-9_-]+\\.mp4$" },
    "sourceUrl": { "type": "string", "format": "uri" },
    "posterUrl": { "type": "string", "minLength": 1 },
    "duration": { "type": "number", "exclusiveMinimum": 0 },
    "resolution": { "type": "string", "minLength": 1 },
    "aspectRatio": { "type": "string", "minLength": 1 },
    "publishedAt": { "type": "string", "minLength": 1 },
    "addedAt": { "type": "string", "format": "date-time" },
    "sourceCaption": { "type": "string", "minLength": 1 },
    "approvedAt": { "type": "string", "minLength": 1 },
    "attributionNote": { "type": "string", "minLength": 1 },
    "editorialBasis": { "type": "string", "minLength": 1 },
    "engagement": {
      "type": "object",
      "required": ["replies", "reposts", "likes", "views"],
      "anyOf": [
        { "required": ["snapshotAt"] },
        { "required": ["capturedAt"] }
      ],
      "properties": {
        "replies": { "type": "number", "minimum": 0 },
        "reposts": { "type": "number", "minimum": 0 },
        "likes": { "type": "number", "minimum": 0 },
        "views": { "type": "number", "minimum": 0 },
        "snapshotAt": { "type": "string", "minLength": 1 },
        "capturedAt": { "type": "string", "minLength": 1 }
      }
    },
    "featured": {
      "type": "object",
      "required": ["at", "basis"],
      "additionalProperties": false,
      "properties": {
        "at": { "type": "string", "format": "date-time" },
        "basis": { "enum": ["official", "manual", "trending"] }
      }
    },
    "author": { "type": "string" },
    "category": { "enum": ["cinematic", "action-vfx", "dialogue", "music", "dance", "advertising", "comparison", "animation", "workflow", "showcase"] },
    "styles": {
      "type": "array",
      "items": { "enum": ["cinematic-realistic", "photoreal", "anime", "illustration", "cg-3d", "stylized", "retro", "dark", "commercial", "ugc", "motion-graphics", "vertical"] },
      "uniqueItems": true,
      "maxItems": 2
    },
    "scenes": {
      "type": "array",
      "items": { "enum": ["performance", "dialogue", "dance", "music-performance", "product", "food", "fashion", "nature", "city", "sci-fi", "fantasy", "combat", "creatures", "daily-life"] },
      "uniqueItems": true,
      "maxItems": 2
    },
    "inputTypes": {
      "type": "array",
      "items": { "enum": ["text", "image", "video", "audio", "unknown"] },
      "uniqueItems": true
    },
    "promptProvenance": {
      "enum": ["official-verbatim", "creator-verbatim", "not-published"]
    },
    "promptSourceUrl": { "type": "string", "format": "uri" },
    "verified": { "type": "boolean" }
  },
  "allOf": [
    {
      "if": {
        "properties": { "promptProvenance": { "const": "not-published" } },
        "required": ["promptProvenance"]
      },
      "then": { "properties": { "prompt": { "type": "null" } } },
      "else": { "properties": { "prompt": { "type": "string", "minLength": 1 } } }
    }
  ]
}
