{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/devarmor/json-schema/devarmor-diagram-update-schema.json",
  "title": "DiagramUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/devarmor-diagrams-api-openapi.yml#/components/schemas/DiagramUpdate",
  "properties": {
    "symbolic_name": {
      "type": "null",
      "title": "Symbolic Name"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Title"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "link": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2083,
          "minLength": 1,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "title": "Link"
    },
    "type": {
      "anyOf": [
        {
          "$ref": "#/$defs/DiagramType"
        },
        {
          "type": "null"
        }
      ]
    },
    "source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source"
    },
    "completed_at": {
      "type": "null",
      "title": "Completed At"
    },
    "blob_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Blob Id"
    }
  },
  "type": "object",
  "$defs": {
    "DiagramType": {
      "type": "string",
      "enum": [
        "graphviz",
        "mermaid",
        "plantuml",
        "svg"
      ],
      "title": "DiagramType"
    }
  }
}