{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/publiq/json-schema/publiq-associations-paginated-response-schema.json",
  "title": "AssociationsPaginatedResponse",
  "description": "Paginated response object for associations",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/publiq-associations-api-openapi.yml#/components/schemas/AssociationsPaginatedResponse",
  "x-stoplight": {
    "id": "ytc6u5zzkcfmv"
  },
  "type": "object",
  "x-tags": [
    "Models"
  ],
  "properties": {
    "totalItems": {
      "type": "integer",
      "description": "Total number of association results (can be more than the amount of results in the response)."
    },
    "member": {
      "type": "array",
      "description": "List of association results for this specific (paginated) request.",
      "items": {
        "$ref": "#/$defs/Association"
      }
    }
  },
  "$defs": {
    "Association": {
      "title": "Association",
      "x-stoplight": {
        "id": "0cqmy2cuzwux0"
      },
      "type": "object",
      "description": "Association",
      "properties": {
        "id": {
          "type": "string",
          "description": "ID of the association"
        },
        "name": {
          "type": "string",
          "x-stoplight": {
            "id": "bl1hgz5y2wooc"
          },
          "description": "Name of the association. This field is always available in responses",
          "readOnly": true
        },
        "endDateType": {
          "type": "string",
          "x-stoplight": {
            "id": "siqftnrb8ax7e"
          },
          "description": "Indicates how end dates are set for memberships of this association. This field is always available in responses.",
          "enum": [
            "CUSTOM",
            "BASED_ON_DATE_OF_BIRTH",
            "BASED_ON_REGISTRATION_DATE"
          ],
          "readOnly": true
        }
      },
      "required": [
        "id"
      ]
    }
  }
}