{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/drivings-com/json-schema/drivings-com-study-plan-input-schema.json",
  "title": "StudyPlanInput",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/drivings-com-openapi.json#/components/schemas/StudyPlanInput",
  "type": "object",
  "required": [
    "region",
    "course"
  ],
  "additionalProperties": false,
  "properties": {
    "region": {
      "$ref": "#/$defs/Region"
    },
    "course": {
      "$ref": "#/$defs/Course"
    },
    "weeks": {
      "type": "integer",
      "minimum": 1,
      "maximum": 16,
      "default": 4
    },
    "daysPerWeek": {
      "type": "integer",
      "minimum": 1,
      "maximum": 7,
      "default": 5
    },
    "minutesPerDay": {
      "type": "integer",
      "minimum": 10,
      "maximum": 120,
      "default": 20
    }
  },
  "$defs": {
    "Course": {
      "type": "string",
      "enum": [
        "car",
        "motorcycle",
        "lgv",
        "pcv",
        "adi",
        "cdl"
      ]
    },
    "Region": {
      "type": "string",
      "enum": [
        "uk",
        "us"
      ]
    }
  }
}