{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/socialdata-tools/json-schema/socialdata-tools-community-schema.json",
  "title": "Community",
  "description": "A Twitter community",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/socialdata-tools-openapi.yml#/components/schemas/Community",
  "type": "object",
  "properties": {
    "id_str": {
      "type": "string",
      "description": "The string representation of the unique identifier for this community"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "creator_screen_name": {
      "type": "string",
      "description": "Username of the community creator, without @"
    },
    "creator_is_blue_verified": {
      "type": "boolean"
    },
    "join_policy": {
      "type": "string"
    },
    "rules": {
      "type": "array",
      "description": "The community rules, as plain strings",
      "items": {
        "type": "string"
      }
    },
    "member_count": {
      "type": "integer"
    },
    "is_nsfw": {
      "type": "boolean"
    },
    "banner_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "banner_width": {
      "type": "integer"
    },
    "banner_height": {
      "type": "integer"
    }
  },
  "required": [
    "id_str",
    "name",
    "member_count"
  ]
}