{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/geoapify/json-schema/geoapify-map-libre-style-schema.json",
  "title": "MapLibreStyle",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/geoapify-map-tiles-api-openapi.yml#/components/schemas/MapLibreStyle",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "version",
    "sources",
    "layers"
  ],
  "properties": {
    "version": {
      "type": "integer",
      "const": 8,
      "description": "MapLibre style specification version."
    },
    "name": {
      "type": "string",
      "description": "Human-readable style name."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true,
      "description": "Style-specific metadata."
    },
    "sources": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": true
      },
      "description": "Named data sources used by the style."
    },
    "sprite": {
      "type": "string",
      "description": "Base URL of the style sprite resources."
    },
    "glyphs": {
      "type": "string",
      "description": "URL template for font glyph resources."
    },
    "layers": {
      "type": "array",
      "description": "Ordered MapLibre style layers.",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  }
}