{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/senlay-cloud/json-schema/senlay-cloud-layer-context-response-schema.json",
  "title": "LayerContextResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/senlay-cloud-openapi.json#/components/schemas/LayerContextResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "contract": {
      "$ref": "#/$defs/ContractRef"
    },
    "field": {
      "type": "string"
    },
    "coordinates": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number"
        },
        "lng": {
          "type": "number"
        }
      }
    },
    "cache": {
      "type": "object",
      "additionalProperties": true
    },
    "catalog": {
      "type": "object",
      "additionalProperties": true
    },
    "layer_context": {
      "$ref": "#/$defs/LayerContext"
    }
  },
  "$defs": {
    "ContractRef": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "LayerContext": {
      "type": "object",
      "description": "Versioned coordinate-specific layer-stack context. Shape may expand as cached static layers come online.",
      "additionalProperties": true,
      "properties": {
        "layer_stack_version": {
          "type": "string"
        },
        "active_layers": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "contexts": {
          "type": "object",
          "additionalProperties": true
        },
        "missing_or_next_layers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "recommended_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}