{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ploid/json-schema/ploid-linked-in-search-response-schema.json",
  "title": "LinkedInSearchResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ploid-linked-in-api-openapi.yml#/components/schemas/LinkedInSearchResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items",
        "cursor",
        "total"
      ],
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LinkedInSearchItem"
          }
        },
        "cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "total": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        }
      }
    },
    "meta": {
      "$ref": "#/$defs/PublicCreditsResponseMeta"
    }
  },
  "$defs": {
    "LinkedInSearchItem": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "socialId",
        "publicIdentifier",
        "profileUrl",
        "fullName",
        "headline",
        "location",
        "industry",
        "profilePictureUrl",
        "connectionDegree"
      ],
      "properties": {
        "socialId": {
          "type": [
            "string",
            "null"
          ]
        },
        "publicIdentifier": {
          "type": [
            "string",
            "null"
          ]
        },
        "profileUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "fullName": {
          "type": "string"
        },
        "headline": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "industry": {
          "type": [
            "string",
            "null"
          ]
        },
        "profilePictureUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "connectionDegree": {
          "oneOf": [
            {
              "type": "integer",
              "enum": [
                1,
                2,
                3
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "PublicCreditsResponseMeta": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "request_id",
        "credits_charged"
      ],
      "properties": {
        "request_id": {
          "type": "string"
        },
        "credits_charged": {
          "type": "number",
          "minimum": 0
        },
        "remaining_credits": {
          "type": "number",
          "minimum": 0
        },
        "cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": "string"
        }
      }
    }
  }
}