{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://rsasaki0109.github.io/lidar_slam_ros2/schemas/diagnosis-v1.schema.json",
  "title": "lidarslam_ros2 diagnosis v1",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "schema_uri",
    "run_dir",
    "status",
    "files",
    "launch_flags",
    "verify",
    "projector_type",
    "problem_hints",
    "suggested_next_steps"
  ],
  "properties": {
    "schema_version": {"const": 1},
    "schema_uri": {
      "const": "https://rsasaki0109.github.io/lidar_slam_ros2/schemas/diagnosis-v1.schema.json"
    },
    "run_dir": {"type": "string"},
    "status": {
      "enum": [
        "success",
        "map_saved",
        "verify_failed",
        "runtime_failed",
        "incomplete"
      ]
    },
    "files": {"type": "object"},
    "launch_flags": {"type": "object"},
    "verify": {"type": "object"},
    "projector_type": {"type": ["string", "null"]},
    "bag_preflight": {"type": "object"},
    "problem_hints": {
      "type": "array",
      "items": {"type": "string"}
    },
    "suggested_next_steps": {
      "type": "array",
      "items": {"type": "string"}
    }
  }
}
