{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scoala-ro/json-schema/scoala-ro-lesson-schema.json",
  "title": "Lesson",
  "description": "Lecție video; câmpurile de conținut lipsesc când AccessType este restricționat.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scoala-ro-openapi.json#/components/schemas/Lesson",
  "type": "object",
  "properties": {
    "Id": {
      "type": "integer"
    },
    "SubcategoryId": {
      "type": "integer"
    },
    "SubcategoryTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "Title": {
      "type": "string"
    },
    "Description1": {
      "type": [
        "string",
        "null"
      ]
    },
    "Description2": {
      "type": [
        "string",
        "null"
      ]
    },
    "Image1Url": {
      "type": [
        "string",
        "null"
      ]
    },
    "Image2Url": {
      "type": [
        "string",
        "null"
      ]
    },
    "VideoUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "ShortVideoUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "PreviewUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "TextScriptUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "TranscriptUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "LessonHtmlContent": {
      "type": [
        "string",
        "null"
      ]
    },
    "TestEmbeddedCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "TestId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "QuizId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "ExerciseId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "IsFree": {
      "type": "boolean"
    },
    "IsFreeForRegistered": {
      "type": "boolean"
    },
    "IsDeleted": {
      "type": "boolean"
    },
    "HasCC": {
      "type": "boolean"
    },
    "OrderNo": {
      "type": "integer"
    },
    "MetaTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "MetaDescription": {
      "type": [
        "string",
        "null"
      ]
    },
    "MetaImage": {
      "type": [
        "string",
        "null"
      ]
    },
    "LessonKeywords": {
      "type": [
        "string",
        "null"
      ]
    },
    "Type": {
      "type": [
        "string",
        "null"
      ]
    },
    "Status": {
      "type": [
        "string",
        "null"
      ]
    },
    "AccessType": {
      "type": "string"
    },
    "Badges": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Badge"
      }
    }
  },
  "$defs": {
    "Badge": {
      "type": "object",
      "properties": {
        "IconName": {
          "type": "string"
        },
        "BadgeTitle": {
          "type": "string"
        }
      }
    }
  }
}