{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codex-reset-com/json-schema/codex-reset-com-status-schema.json",
  "title": "Status",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codex-reset-com-openapi.yml#/components/schemas/Status",
  "type": "object",
  "required": [
    "indicator",
    "description",
    "degraded",
    "surfaces",
    "checked_at"
  ],
  "properties": {
    "indicator": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "degraded": {
      "type": "boolean"
    },
    "surfaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StatusSurface"
      }
    },
    "active_incident": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "checked_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "StatusSurface": {
      "type": "object",
      "required": [
        "id",
        "label",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      }
    }
  }
}