{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ampersand/refs/heads/main/json-schema/ampersand-api-topic-schema.json",
  "title": "Topic",
  "description": "Topic schema from Ampersand API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The topic ID."
    },
    "name": {
      "type": "string",
      "description": "The name of the topic. Must contain only letters, numbers, and dashes.",
      "example": "system-alerts",
      "maxLength": 64
    },
    "projectId": {
      "type": "string",
      "description": "The Ampersand project ID."
    },
    "createTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the topic was created."
    },
    "updateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the topic was last updated."
    }
  },
  "required": [
    "id",
    "name",
    "projectId",
    "createTime"
  ]
}