{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkedin/json-schema/linkedin-lead-gen-response-schema.json",
  "title": "LeadGenResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkedin-lead-generation-api-openapi.yml#/components/schemas/LeadGenResponse",
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LeadGenRecord"
      }
    },
    "paging": {
      "$ref": "#/$defs/Paging"
    }
  },
  "$defs": {
    "LeadGenAnswer": {
      "type": "object",
      "properties": {
        "questionId": {
          "type": "string"
        },
        "answerValue": {
          "type": "string"
        }
      }
    },
    "LeadGenRecord": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "formId": {
          "type": "string"
        },
        "submittedAt": {
          "type": "integer",
          "format": "int64"
        },
        "answers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LeadGenAnswer"
          }
        }
      }
    },
    "Paging": {
      "type": "object",
      "properties": {
        "start": {
          "type": "integer"
        },
        "count": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      }
    }
  }
}