{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/academy-software-foundation/json-schema/academy-software-foundation-layer-list-schema.json",
  "title": "LayerList",
  "description": "List of layers",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/academy-software-foundation-layers-api-openapi.yml#/components/schemas/LayerList",
  "type": "object",
  "properties": {
    "layers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Layer"
      }
    }
  },
  "$defs": {
    "Layer": {
      "type": "object",
      "description": "A layer within a render job",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique layer identifier"
        },
        "name": {
          "type": "string",
          "description": "Layer name"
        },
        "type": {
          "type": "string",
          "description": "Layer type",
          "enum": [
            "RENDER",
            "UTIL"
          ]
        },
        "state": {
          "type": "string",
          "description": "Layer state"
        },
        "minCores": {
          "type": "integer",
          "description": "Minimum cores required per frame"
        },
        "maxCores": {
          "type": "integer",
          "description": "Maximum cores allowed per frame"
        },
        "threadable": {
          "type": "boolean",
          "description": "Whether frames can run multi-threaded"
        },
        "totalFrames": {
          "type": "integer",
          "description": "Total number of frames in this layer"
        },
        "doneFrames": {
          "type": "integer",
          "description": "Number of completed frames in this layer"
        }
      }
    }
  }
}