{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nimboweather-com/json-schema/nimboweather-com-palettes-schema.json",
  "title": "Palettes",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nimboweather-com-openapi.json#/components/schemas/Palettes",
  "properties": {
    "levels": {
      "type": "integer",
      "title": "Levels",
      "description": "rate levels 1..levels; level = 1 + ln(rate / rate_min) / ln(rate_max / rate_min) * (levels - 1)"
    },
    "rate_min": {
      "type": "number",
      "title": "Rate Min",
      "description": "mm/h of level 1"
    },
    "rate_max": {
      "type": "number",
      "title": "Rate Max",
      "description": "mm/h of the last level"
    },
    "nodata": {
      "type": "integer",
      "title": "Nodata",
      "description": "level value meaning no data"
    },
    "palettes": {
      "additionalProperties": {
        "items": {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "type": "array"
      },
      "type": "object",
      "title": "Palettes",
      "description": "palette -> RGBA per level (index 0 = no rain)"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "levels",
    "rate_min",
    "rate_max",
    "nodata",
    "palettes"
  ]
}