{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlec/json-schema/curlec-stakeholder-document-schema.json",
  "title": "StakeholderDocument",
  "description": "KYC documents for a stakeholder. Supports PAN, Aadhaar, passport, and voter ID. Files must be JPG/PNG (max 4MB) or PDF (max 2MB).",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlec-partner-documents-api-openapi.yml#/components/schemas/StakeholderDocument",
  "type": "object",
  "properties": {
    "individual_proof_of_address": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "aadhar_front",
              "aadhar_back",
              "passport_front",
              "passport_back",
              "voter_id_front",
              "voter_id_back"
            ]
          },
          "url": {
            "type": "string"
          },
          "document_id": {
            "type": "string"
          }
        }
      }
    },
    "individual_proof_of_identification": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "personal_pan"
            ]
          },
          "url": {
            "type": "string"
          },
          "document_id": {
            "type": "string"
          }
        }
      }
    }
  }
}