{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/insurers-global/json-schema/insurers-global-group-footprint-schema.json",
  "title": "GroupFootprint",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/insurers-global-openapi.json#/components/schemas/GroupFootprint",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "enriched": {
      "type": "boolean",
      "description": "Whether any entity has data beyond its licence"
    },
    "countries": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "entities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "verification": {
            "type": "string",
            "enum": [
              "verified",
              "partial",
              "unverified"
            ]
          },
          "sourceBasis": {
            "type": "string"
          },
          "classBasis": {
            "type": [
              "string",
              "null"
            ],
            "description": "How the class was determined"
          },
          "groupBasis": {
            "type": [
              "string",
              "null"
            ],
            "description": "How the parent or group was determined"
          },
          "lei": {
            "type": [
              "string",
              "null"
            ],
            "description": "LEI where the register carries it"
          },
          "nationalId": {
            "type": [
              "string",
              "null"
            ],
            "description": "National register identifier if available"
          },
          "class": {
            "type": "string"
          },
          "group": {
            "type": "string"
          },
          "groupPlaceholder": {
            "type": "boolean"
          },
          "licensedIn": {
            "type": "string",
            "description": "Country slug of the licence"
          },
          "branchOf": {
            "type": [
              "object",
              "null"
            ],
            "description": "A related legal entity from GLEIF Level 2 data",
            "properties": {
              "lei": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO alpha-2 of the legal address"
              },
              "slug": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Directory insurer slug when the LEI is listed"
              },
              "source": {
                "type": "string",
                "format": "uri",
                "description": "Record the value was read from"
              },
              "seen": {
                "type": "string",
                "format": "date",
                "description": "Date the source was last read"
              }
            }
          },
          "parent": {
            "type": [
              "object",
              "null"
            ],
            "description": "A related legal entity from GLEIF Level 2 data",
            "properties": {
              "lei": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO alpha-2 of the legal address"
              },
              "slug": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Directory insurer slug when the LEI is listed"
              },
              "source": {
                "type": "string",
                "format": "uri",
                "description": "Record the value was read from"
              },
              "seen": {
                "type": "string",
                "format": "date",
                "description": "Date the source was last read"
              }
            }
          },
          "ultimateParent": {
            "type": [
              "object",
              "null"
            ],
            "description": "A related legal entity from GLEIF Level 2 data",
            "properties": {
              "lei": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO alpha-2 of the legal address"
              },
              "slug": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Directory insurer slug when the LEI is listed"
              },
              "source": {
                "type": "string",
                "format": "uri",
                "description": "Record the value was read from"
              },
              "seen": {
                "type": "string",
                "format": "date",
                "description": "Date the source was last read"
              }
            }
          },
          "branches": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "passportsTo": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "country": {
                  "type": "string",
                  "description": "Host state, ISO alpha-2"
                },
                "basis": {
                  "type": "string",
                  "enum": [
                    "FoS",
                    "FoE"
                  ],
                  "description": "Freedom of services, or an EEA branch"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Branch name when it differs"
                }
              }
            }
          }
        }
      }
    },
    "matrix": {
      "type": "object",
      "description": "matrix[countrySlug][insurerSlug] = \"licence\" | \"branch\" | \"fos\"",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "string",
          "enum": [
            "licence",
            "branch",
            "fos"
          ]
        }
      }
    }
  }
}