{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/firmoscop-ro/json-schema/firmoscop-ro-suggest-hit-schema.json",
  "title": "SuggestHit",
  "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/SuggestHit",
  "type": "object",
  "properties": {
    "cui": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "county": {
      "type": [
        "string",
        "null"
      ]
    },
    "locality": {
      "type": [
        "string",
        "null"
      ]
    },
    "registrationState": {
      "type": [
        "string",
        "null"
      ]
    },
    "similarity": {
      "type": "number"
    },
    "stateBadge": {
      "type": [
        "object",
        "null"
      ],
      "description": "Starea din registru, gata de afișat. null = firmă în funcțiune. Roșu = firma a încetat să existe (radiată, dizolvată); galben = firma există, dar are o stare care cere atenție (de ex. o procedură de insolvență).",
      "properties": {
        "label": {
          "type": "string"
        },
        "tone": {
          "type": "string",
          "enum": [
            "rosu",
            "galben"
          ]
        }
      }
    }
  }
}