{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-structure/publisher-api-topic-structure.json",
  "name": "Topic object",
  "description": "Topic schema from WSO2 API Manager",
  "required": [
    "name",
    "mode",
    "description"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "id",
      "readOnly": true,
      "example": 1222344
    },
    "name": {
      "maxLength": 50,
      "minLength": 1,
      "pattern": "(^[^~!@#;:%^*()+={}|\\\\<>\"',&$\\s+\\[\\]\\/]*$)",
      "type": "string",
      "example": "PizzaShackAPI"
    },
    "mode": {
      "maxLength": 20,
      "type": "string",
      "example": "Pizza"
    },
    "description": {
      "maxLength": 32766,
      "type": "string",
      "example": "This is a simple API for Pizza Shack online pizza delivery store."
    }
  }
}