{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://ordinis.nstart.cloud/schemas/cuod/spectral_band/1.0.0",
  "title": "Spectral band (спектральный канал)",
  "description": "Стандартные оптические/ИК-каналы используемые в каталоге снимков.",
  "type": "object",
  "required": ["code", "name", "wavelength_min_nm", "wavelength_max_nm", "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"]
    },
    "wavelength_min_nm": { "type": "integer", "minimum": 100, "maximum": 30000 },
    "wavelength_max_nm": { "type": "integer", "minimum": 100, "maximum": 30000 },
    "spectral_region": {
      "type": "string",
      "enum": ["UV", "VISIBLE", "NIR", "SWIR", "MWIR", "TIR"]
    },
    "status": { "type": "string", "enum": ["active", "archived"] }
  }
}
