{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/firmoscop-ro/json-schema/firmoscop-ro-connections-schema.json",
  "title": "Connections",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/firmoscop-ro-api-openapi.json#/components/schemas/Connections",
  "type": "object",
  "properties": {
    "cui": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "connectedCompanies": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "cui": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "registrationState": {
            "type": [
              "string",
              "null"
            ]
          },
          "insolvent": {
            "type": "boolean",
            "description": "Procedură de insolvență în curs."
          },
          "struckOff": {
            "type": "boolean",
            "description": "Radiată din registru."
          },
          "viaPerson": {
            "type": "string"
          },
          "role": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "totalConnected": {
      "type": "integer"
    },
    "insolventCount": {
      "type": "integer",
      "description": "În procedură de insolvență. NU include radierile — acestea sunt ~44% din registru și ar îneca semnalul."
    },
    "struckOffCount": {
      "type": "integer",
      "description": "Radiate din registru."
    },
    "commonNameWarning": {
      "type": "boolean",
      "description": "Numele apare la peste 15 firme — prag peste percentila 99 a distribuției reale, deci aproape sigur persoane diferite."
    }
  }
}