{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://open-music-project.org/schema/1.2/automation.schema.json",
  "title": "OMP automation/lanes.json",
  "type": "object",
  "required": ["lanes"],
  "properties": {
    "lanes": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["target", "points"],
        "properties": {
          "target": { "type": "string", "minLength": 1 },
          "name": { "type": "string" },
          "enabled": { "type": "boolean" },
          "points": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "required": ["tick", "value"],
              "properties": {
                "tick": { "type": "integer", "minimum": 0 },
                "value": { "type": "number" }
              }
            }
          }
        }
      }
    }
  }
}
