{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://ordinis.nstart.cloud/schemas/cuod/inclination_class/1.0.0",
  "title": "Inclination class (классы наклонения)",
  "description": "Диапазоны наклонения орбиты — для группировки/фильтрации каталога КА.",
  "type": "object",
  "required": ["code", "name", "min_deg", "max_deg", "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"]
    },
    "min_deg": { "type": "number", "minimum": 0, "maximum": 180 },
    "max_deg": { "type": "number", "minimum": 0, "maximum": 180 },
    "status": { "type": "string", "enum": ["active", "archived"] }
  }
}
