{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "notarius.dnd.combat_turns.llm",
  "type": "object",
  "additionalProperties": false,
  "required": ["combat_turns"],
  "properties": {
    "combat_turns": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["actor", "turn_kind", "source_refs"],
        "properties": {
          "actor": {
            "type": "string"
          },
          "turn_kind": {
            "type": "string"
          },
          "source_refs": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": ["start_unit_id", "end_unit_id"],
              "properties": {
                "start_unit_id": {
                  "type": "integer"
                },
                "end_unit_id": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    }
  }
}
