{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/genialis/main/json-schema/genialis-paginated-community-list-schema.json",
  "title": "PaginatedCommunityList",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/genialis-community-api-openapi.yml#/components/schemas/PaginatedCommunityList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Community"
      }
    }
  },
  "$defs": {
    "Community": {
      "type": "object",
      "description": "Serializer for :class:`Community` objects.",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "maxLength": 100
        },
        "slug": {
          "type": "string",
          "maxLength": 100,
          "pattern": "^[-a-zA-Z0-9_]+$"
        },
        "default": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "name",
        "slug"
      ]
    }
  }
}