{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-experience-cloud/json-schema/salesforce-experience-cloud-topic-collection-schema.json",
  "title": "TopicCollection",
  "description": "Collection of topics",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-experience-cloud-topics-api-openapi.yml#/components/schemas/TopicCollection",
  "type": "object",
  "properties": {
    "currentPageUrl": {
      "type": "string",
      "format": "uri"
    },
    "nextPageUrl": {
      "type": "string",
      "format": "uri"
    },
    "topics": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Topic"
      }
    }
  },
  "$defs": {
    "Topic": {
      "type": "object",
      "description": "A topic within an Experience Cloud site",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the topic"
        },
        "createdDate": {
          "type": "string",
          "format": "date-time"
        },
        "description": {
          "type": "string"
        },
        "images": {
          "type": "object",
          "properties": {
            "coverImageUrl": {
              "type": "string",
              "format": "uri"
            }
          }
        },
        "name": {
          "type": "string",
          "description": "Name of the topic"
        },
        "talkingAbout": {
          "type": "integer",
          "description": "Number of people currently talking about this topic"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}