{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scoala-ro/json-schema/scoala-ro-course-schema.json",
  "title": "Course",
  "description": "Clasă dintr-o materie; aceeași formă ca Subject, cu ParentCategoryId setat.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scoala-ro-openapi.json#/components/schemas/Course",
  "$ref": "#/$defs/Subject",
  "$defs": {
    "Badge": {
      "type": "object",
      "properties": {
        "IconName": {
          "type": "string"
        },
        "BadgeTitle": {
          "type": "string"
        }
      }
    },
    "Subject": {
      "type": "object",
      "description": "Materie de studiu (categorie rădăcină).",
      "properties": {
        "Id": {
          "type": "integer"
        },
        "Title": {
          "type": "string"
        },
        "Description1": {
          "type": [
            "string",
            "null"
          ]
        },
        "Description2": {
          "type": [
            "string",
            "null"
          ]
        },
        "Description3": {
          "type": [
            "string",
            "null"
          ]
        },
        "Image1Url": {
          "type": [
            "string",
            "null"
          ]
        },
        "Image2Url": {
          "type": [
            "string",
            "null"
          ]
        },
        "Image3Url": {
          "type": [
            "string",
            "null"
          ]
        },
        "IsActive": {
          "type": "boolean"
        },
        "IsDeleted": {
          "type": "boolean"
        },
        "OrderNo": {
          "type": "integer"
        },
        "ParentCategoryId": {
          "type": [
            "integer",
            "null"
          ]
        },
        "MetaTitle": {
          "type": [
            "string",
            "null"
          ]
        },
        "MetaDescription": {
          "type": [
            "string",
            "null"
          ]
        },
        "Badges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Badge"
          }
        }
      }
    }
  }
}