{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/attestedmemory-net/json-schema/attestedmemory-net-studio-run-request-schema.json",
  "title": "StudioRunRequest",
  "description": "A blueprint submitted through the hub's same-origin run path.\n\nCapped at the executor's own limit rather than trusting it to reject: this route\nexists so a browser can reach the executor at all, and a forwarder that passes on\nwhatever it is handed is one bug away from being a general-purpose poster.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/attestedmemory-net-studio-api-openapi.yml#/components/schemas/StudioRunRequest",
  "properties": {
    "nodes": {
      "items": {
        "$ref": "#/$defs/StudioNode"
      },
      "type": "array",
      "maxItems": 16,
      "minItems": 1,
      "title": "Nodes"
    },
    "channel_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Channel Id"
    }
  },
  "type": "object",
  "required": [
    "nodes"
  ],
  "$defs": {
    "StudioNode": {
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 64,
          "title": "Id",
          "default": ""
        },
        "product_id": {
          "type": "string",
          "maxLength": 80,
          "minLength": 2,
          "title": "Product Id"
        },
        "capability_id": {
          "type": "string",
          "maxLength": 80,
          "minLength": 2,
          "title": "Capability Id"
        },
        "input": {
          "additionalProperties": true,
          "type": "object",
          "title": "Input"
        },
        "depends_on": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 16,
          "title": "Depends On"
        },
        "input_from": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64
            },
            {
              "type": "null"
            }
          ],
          "title": "Input From"
        },
        "source_hub": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 200
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Hub"
        }
      },
      "type": "object",
      "required": [
        "product_id",
        "capability_id"
      ],
      "title": "StudioNode",
      "description": "One hop of a studio blueprint — the executor's node shape, validated here too."
    }
  }
}