{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/datocapital-com/json-schema/datocapital-com-representative-list-schema.json",
  "title": "RepresentativeList",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/datocapital-com-openapi.yaml#/components/schemas/RepresentativeList",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Representative"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "has_more": {
      "type": "boolean"
    }
  },
  "$defs": {
    "Representative": {
      "type": "object",
      "properties": {
        "holder": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "individual",
                "company"
              ]
            },
            "name": {
              "type": "string"
            },
            "id": {
              "type": "string",
              "description": "Individual id, when the person has a profile."
            },
            "uec": {
              "type": "string",
              "description": "Company UEC, when the officer is a company with a profile."
            },
            "url": {
              "type": "string"
            }
          }
        },
        "role": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Role in the requested language, else as the register shows it."
            },
            "name_local": {
              "type": "string",
              "description": "Role as the register shows it."
            }
          }
        },
        "appointed_on": {
          "type": "string",
          "format": "date",
          "description": "Absent when the source shows the end of the role only."
        },
        "ceased_on": {
          "type": "string",
          "format": "date",
          "description": "Absent while the role is current."
        },
        "is_current": {
          "type": "boolean"
        }
      }
    }
  }
}