{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-candidate-list-schema.json",
  "title": "CandidateList",
  "description": "A candidate list — a named, user-curated collection of candidate profiles within an organization.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-candidate-lists-api-openapi.yml#/components/schemas/CandidateList",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "List ID",
      "description": "Unique identifier for the candidate list."
    },
    "title": {
      "type": "string",
      "title": "Title",
      "description": "Human-readable name of the list."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "title": "Description",
      "description": "Optional free-text description of the list."
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ],
      "title": "External ID",
      "description": "Caller-supplied external identifier for the list, when set."
    },
    "owner": {
      "type": [
        "string",
        "null"
      ],
      "format": "email",
      "title": "Owner",
      "description": "Email of the user who owns the list. Null when that user no longer exists."
    },
    "candidatesCount": {
      "type": "integer",
      "title": "Candidates Count",
      "description": "Number of candidate profiles currently on the list."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "When the list was created (ISO 8601)."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At",
      "description": "When the list was last updated (ISO 8601)."
    }
  },
  "required": [
    "id",
    "title",
    "description",
    "externalId",
    "owner",
    "candidatesCount",
    "createdAt",
    "updatedAt"
  ],
  "additionalProperties": false
}