{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://ordinis.nstart.cloud/schemas/cuod/frequency_band/1.0.0",
  "title": "Frequency band (радиочастотный диапазон)",
  "description": "Стандартные RF-диапазоны (IEEE) — для SAR и связи КА↔НС.",
  "type": "object",
  "required": ["code", "name", "frequency_ghz_min", "frequency_ghz_max", "status"],
  "additionalProperties": false,
  "x-id-source": "code",
  "properties": {
    "code": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{1,31}$", "x-unique": true },
    "name": {
      "type": "object", "x-localized": true,
      "patternProperties": { "^[a-z]{2}-[A-Z]{2}$": { "type": "string", "minLength": 1 } },
      "required": ["ru-RU"]
    },
    "frequency_ghz_min": { "type": "number", "minimum": 0.1, "maximum": 1000 },
    "frequency_ghz_max": { "type": "number", "minimum": 0.1, "maximum": 1000 },
    "wavelength_cm_typical": { "type": "number", "minimum": 0.1, "maximum": 1000 },
    "typical_use": {
      "type": "string",
      "enum": ["sar_imaging", "telemetry_command", "data_downlink", "navigation", "intersatellite", "general"]
    },
    "status": { "type": "string", "enum": ["active", "archived"] }
  }
}
