{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/electronics-architect-com/json-schema/electronics-architect-com-template-list-schema.json",
  "title": "TemplateList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/electronics-architect-com-templates-api-openapi.yml#/components/schemas/TemplateList",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "schema": {
      "type": "string",
      "description": "The design schema every template validates against."
    },
    "templates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TemplateSummary"
      }
    }
  },
  "$defs": {
    "TemplateSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "sheets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Sheet names."
        },
        "nodes": {
          "type": "integer"
        },
        "componentCounts": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          },
          "description": "Node count by type, e.g. { \"SMPS\": 3, \"Load\": 3 }."
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The explanatory text the template carries on canvas."
        },
        "url": {
          "type": "string",
          "description": "Where to read the document: /v1/templates/{id}."
        }
      }
    }
  }
}