{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nimboweather-com/json-schema/nimboweather-com-tiles-index-schema.json",
  "title": "TilesIndex",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nimboweather-com-openapi.json#/components/schemas/TilesIndex",
  "properties": {
    "generated": {
      "type": "string",
      "title": "Generated"
    },
    "issue_time": {
      "type": "string",
      "title": "Issue Time"
    },
    "data_age_s": {
      "type": "integer",
      "title": "Data Age S"
    },
    "stale": {
      "type": "boolean",
      "title": "Stale"
    },
    "notice": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notice"
    },
    "tile_size": {
      "type": "integer",
      "title": "Tile Size",
      "default": 256
    },
    "min_zoom": {
      "type": "integer",
      "title": "Min Zoom",
      "default": 0
    },
    "max_zoom": {
      "type": "integer",
      "title": "Max Zoom",
      "default": 8
    },
    "layers": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Layers",
      "description": "layer id -> what it shows"
    },
    "palettes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Palettes"
    },
    "past": {
      "items": {
        "$ref": "#/$defs/TileFrame"
      },
      "type": "array",
      "title": "Past",
      "description": "observed radar frames: empty for now"
    },
    "forecast": {
      "items": {
        "$ref": "#/$defs/TileFrame"
      },
      "type": "array",
      "title": "Forecast"
    },
    "latest": {
      "type": "string",
      "title": "Latest",
      "description": "template of the 302 alias to the current issue's tile"
    },
    "grid": {
      "type": "string",
      "title": "Grid"
    },
    "attribution": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Attribution"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "generated",
    "issue_time",
    "data_age_s",
    "stale",
    "notice",
    "layers",
    "palettes",
    "past",
    "forecast",
    "latest",
    "grid",
    "attribution"
  ],
  "$defs": {
    "TileFrame": {
      "properties": {
        "time": {
          "type": "string",
          "title": "Time",
          "description": "valid time, ISO (UTC)"
        },
        "offset_min": {
          "type": "integer",
          "title": "Offset Min",
          "description": "minutes after the issue time"
        },
        "tiles": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Tiles",
          "description": "URL template per layer: fill {z}/{x}/{y}, add ?key="
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "time",
        "offset_min",
        "tiles"
      ],
      "title": "TileFrame"
    }
  }
}