{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "notarius.dnd.item_registry.llm",
  "type": "object",
  "additionalProperties": false,
  "required": ["items"],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["name", "source_refs"],
        "properties": {
          "name": {"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"}
              }
            }
          }
        }
      }
    }
  }
}
