{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.clarify.solutions/ship/v1/status.ship.schema.json",
  "title": "ship status.ship.yml",
  "description": "Operational status for a ship deployment. Records when a deployment is intentionally out of service (paused / powered off). Git-tracked and ship-owned. Authoritative shape: internal/core/deploystatus/status.go.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "out_of_service": {
      "type": "object",
      "description": "Present when the deployment is intentionally out of service. Absent (or omitted) means the deployment is in service.",
      "additionalProperties": false,
      "required": ["reason"],
      "properties": {
        "reason": {
          "type": "string",
          "description": "Human-readable reason the deployment is out of service."
        },
        "since": {
          "type": "string",
          "format": "date-time",
          "description": "RFC 3339 timestamp for when the deployment went out of service."
        },
        "by": {
          "type": "string",
          "description": "Who marked the deployment out of service."
        }
      }
    }
  }
}
