{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/entityreach-com/json-schema/entityreach-com-profile-schema.json",
  "title": "Profile",
  "description": "Provenance-enabled profile. Sections and individual fields may be missing or null.",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/entityreach-com-api-openapi.json#/components/schemas/Profile",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "id": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[0-9]{1,20}$"
        },
        {
          "type": "integer"
        }
      ]
    },
    "basic": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "properties": {
        "name": {
          "type": "string"
        },
        "registration_number": {
          "type": "string"
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "$ref": "#/$defs/Source"
        }
      }
    },
    "address": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "properties": {
        "country_code": {
          "type": "string"
        },
        "country_name": {
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/Source"
        }
      }
    },
    "contact": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "properties": {
        "website": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "$ref": "#/$defs/Source"
        }
      }
    },
    "market": {
      "$ref": "#/$defs/ProfileSection"
    },
    "lei": {
      "$ref": "#/$defs/ProfileSection"
    }
  },
  "$defs": {
    "ProfileSection": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "properties": {
        "source": {
          "$ref": "#/$defs/Source"
        }
      }
    },
    "Source": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[0-9]{1,20}$"
            },
            {
              "type": "integer"
            }
          ]
        },
        "name": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "comment": {
          "type": "string"
        }
      }
    }
  }
}