{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listme-name/json-schema/listme-name-lesson-schema.json",
  "title": "Lesson",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listme-name-openapi.yml#/components/schemas/Lesson",
  "type": "object",
  "required": [
    "slug",
    "title",
    "url"
  ],
  "properties": {
    "slug": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "topic": {
      "type": "string"
    },
    "order": {
      "type": "integer"
    },
    "level": {
      "type": "string",
      "enum": [
        "beginner",
        "intermediate"
      ]
    },
    "published": {
      "type": "string",
      "format": "date"
    },
    "updated": {
      "type": "string",
      "format": "date"
    },
    "reading_minutes": {
      "type": "integer"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "markdown": {
      "type": "string",
      "format": "uri"
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "takeaways": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "rankings": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "video": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "captions": {
          "type": "string",
          "format": "uri"
        },
        "poster": {
          "type": "string",
          "format": "uri"
        },
        "duration_seconds": {
          "type": "number"
        },
        "chapters": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "start": {
                "type": "number"
              },
              "title": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "body_markdown": {
      "type": "string"
    },
    "transcript": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}