{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shortgenius-com/json-schema/shortgenius-com-draft-quiz-video-schema.json",
  "title": "DraftQuizVideo",
  "description": "Scenes suitable for a quiz-style video.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shortgenius-com-openapi.yaml#/components/schemas/DraftQuizVideo",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "The title of the video."
    },
    "caption": {
      "type": "string",
      "description": "The description shown beside the video when posted to social media."
    },
    "quiz": {
      "type": "object",
      "properties": {
        "questions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "question": {
                "type": "string",
                "description": "A quiz question."
              },
              "options": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "correct": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "text",
                    "correct"
                  ]
                }
              }
            },
            "required": [
              "question",
              "options"
            ]
          }
        },
        "results": {
          "type": "object",
          "properties": {
            "header": {
              "type": "string",
              "description": "The header shown at the top of the quiz results."
            },
            "explanation": {
              "type": "string",
              "description": "The text the AI narrates when showing the quiz results."
            },
            "categories": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "score_range": {
                    "type": "string",
                    "description": "The number of questions viewers in this category got right (e.g., \"1-2\")."
                  },
                  "title": {
                    "type": "string",
                    "description": "The title of the category."
                  }
                },
                "required": [
                  "score_range",
                  "title"
                ]
              }
            }
          },
          "required": [
            "header",
            "explanation",
            "categories"
          ]
        }
      },
      "required": [
        "questions",
        "results"
      ]
    }
  },
  "required": [
    "title",
    "caption",
    "quiz"
  ]
}