{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sorry/main/json-schema/sorry-page-schema.json",
  "title": "Sorry Status Page",
  "description": "Schema for a status page in the Sorry app platform",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the status page"
    },
    "name": {
      "type": "string",
      "description": "Display name of the status page"
    },
    "timezone": {
      "type": "string",
      "description": "Timezone for the status page (e.g., UTC, America/New_York)"
    },
    "state": {
      "type": "string",
      "description": "Current state of the status page"
    },
    "support_email": {
      "type": "string",
      "format": "email",
      "description": "Support contact email address"
    },
    "support_telephone": {
      "type": "string",
      "description": "Support telephone number"
    },
    "support_url": {
      "type": "string",
      "format": "uri",
      "description": "Support URL for customer assistance"
    },
    "locale": {
      "type": "string",
      "description": "Locale setting for the page (e.g., en)"
    },
    "visible_to_search": {
      "type": "boolean",
      "description": "Whether the page is indexed by search engines"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the page was created"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the page was last updated"
    }
  },
  "required": ["id", "name"]
}
