{
  "$id": "https://trvis.t0r.dev/json/v1/train.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": true,
  "properties": {
    "AfterArrive": {
      "type": "string"
    },
    "AfterArrive_OnStationTrackCol": {
      "type": "string"
    },
    "AfterRemarks": {
      "type": "string"
    },
    "BeforeDeparture": {
      "type": "string"
    },
    "BeforeDeparture_OnStationTrackCol": {
      "type": "string"
    },
    "BeginRemarks": {
      "type": "string"
    },
    "CarCount": {
      "minimum": 1,
      "type": "integer"
    },
    "Color": {
      "pattern": "^[0-9a-fA-F]{6}$",
      "type": "string"
    },
    "DayCount": {
      "minimum": 0,
      "type": "integer"
    },
    "Destination": {
      "type": "string"
    },
    "Direction": {
      "type": "number"
    },
    "IsRideOnMoving": {
      "type": "boolean"
    },
    "MaxSpeed": {
      "type": "string"
    },
    "NominalTractiveCapacity": {
      "type": "string"
    },
    "Remarks": {
      "type": "string"
    },
    "SpeedType": {
      "type": "string"
    },
    "TimetableRows": {
      "items": {
        "$ref": "/json/v1/timetable_row.schema.json"
      },
      "minItems": 1,
      "type": "array"
    },
    "TrainInfo": {
      "type": "string"
    },
    "TrainNumber": {
      "minLength": 1,
      "type": "string"
    },
    "WorkType": {
      "type": "integer"
    }
  },
  "required": [
    "TrainNumber",
    "Direction",
    "TimetableRows"
  ],
  "type": "object"
}