{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/electronics-architect-com/json-schema/electronics-architect-com-design-record-schema.json",
  "title": "DesignRecord",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/electronics-architect-com-designs-api-openapi.yml#/components/schemas/DesignRecord",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "design": {
      "$ref": "#/$defs/Design"
    },
    "message": {
      "type": [
        "string",
        "null"
      ],
      "description": "The note describing the design in THIS response. A revision row carries the note for the state in it, so the live design keeps its own here; a design saved once has a message and no revisions."
    },
    "revisions": {
      "type": "integer",
      "description": "How many earlier states this design has replaced."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "Design": {
      "$ref": "https://electronics-architect.com/schema/design-v1.json",
      "description": "Design schema v1, generated from the attribute registry and published at https://electronics-architect.com/schema/design-v1.json."
    }
  }
}