{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/firmoscop-ro/json-schema/firmoscop-ro-stat-bucket-schema.json",
  "title": "StatBucket",
  "description": "O categorie din statistica unei selecții. Valorile financiare sunt `null` când nicio firmă din categorie n-are bilanț cunoscut — „nu știm\" nu se raportează ca zero.",
  "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/StatBucket",
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "description": "Cheia stabilă a categoriei."
    },
    "label": {
      "type": "string",
      "description": "Eticheta în română."
    },
    "companies": {
      "type": "integer"
    },
    "turnover": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Suma cifrelor de afaceri cunoscute (lei)."
    },
    "medianTurnover": {
      "type": [
        "integer",
        "null"
      ]
    },
    "employees": {
      "type": [
        "integer",
        "null"
      ]
    },
    "netResult": {
      "type": [
        "integer",
        "null"
      ]
    },
    "sharePct": {
      "type": [
        "number",
        "null"
      ],
      "description": "Ponderea în selecție."
    },
    "nationalSharePct": {
      "type": [
        "number",
        "null"
      ],
      "description": "Ponderea aceleiași categorii în toată baza. `null` = nemăsurată, NU zero."
    }
  }
}