{
  "title": "DeploymentDiagram",
  "type": "object",
  "properties": {
    "type": {
      "const": "DeploymentDiagram",
      "description": "Type of the diagram.",
      "title": "Type",
      "type": "string"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Optional diagram title.",
      "title": "Title"
    },
    "elements": {
      "description": "Top-level elements.",
      "items": {
        "anyOf": [
          {
            "$ref": "#/$defs/PlantUMLPersonSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLPersonExtSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLSystemSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLSystemExtSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLSystemDbSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLSystemDbExtSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLSystemQueueSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLSystemQueueExtSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLContainerSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLContainerExtSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLContainerDbSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLContainerDbExtSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLContainerQueueSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLContainerQueueExtSchema"
          }
        ]
      },
      "title": "Elements",
      "type": "array"
    },
    "boundaries": {
      "description": "Top-level boundaries.",
      "items": {
        "anyOf": [
          {
            "$ref": "#/$defs/PlantUMLNodeSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLNodeLeftSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLNodeRightSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLDeploymentNodeSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLDeploymentNodeLeftSchema"
          },
          {
            "$ref": "#/$defs/PlantUMLDeploymentNodeRightSchema"
          }
        ]
      },
      "title": "Boundaries",
      "type": "array"
    },
    "relationships": {
      "description": "Top-level relationships.",
      "items": {
        "$ref": "#/$defs/PlantUMLRelationshipSchema"
      },
      "title": "Relationships",
      "type": "array"
    },
    "backend": {
      "const": "plantuml",
      "description": "JSON schema backend.",
      "title": "Backend",
      "type": "string"
    },
    "layouts": {
      "description": "PlantUML relative layout constraints between elements.",
      "items": {
        "$ref": "#/$defs/LayoutSchema"
      },
      "title": "Layouts",
      "type": "array"
    },
    "render_options": {
      "anyOf": [
        {
          "$ref": "#/$defs/PlantUMLRenderOptionsSchema"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "PlantUML-specific render options."
    }
  },
  "required": [
    "type",
    "backend"
  ],
  "additionalProperties": false,
  "$defs": {
    "BoundaryStyleSchema": {
      "additionalProperties": false,
      "properties": {
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional custom type/stereotype label.",
          "title": "Stereotype"
        },
        "type": {
          "const": "BoundaryStyle",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "element_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Boundary element type to style (e.g. 'enterprise', 'system', 'container').",
          "title": "Element Name"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font/text color.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line color.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shape macro used for rendering."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon applied to the boundary.",
          "title": "Sprite"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Legend label for this styled boundary.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Legend sprite for this styled boundary.",
          "title": "Legend Sprite"
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type"
      ],
      "title": "BoundaryStyleSchema",
      "type": "object"
    },
    "BoundaryTagSchema": {
      "additionalProperties": false,
      "properties": {
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional custom type/stereotype label.",
          "title": "Stereotype"
        },
        "type": {
          "const": "BoundaryTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the boundary.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used for boundary labels.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the boundary border.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Boundary border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the boundary border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "BoundaryTagSchema",
      "type": "object"
    },
    "ComponentTagSchema": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "ComponentTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the element.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used for labels.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the element border.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Technology label shown on the element.",
          "title": "Technology"
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the element border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "ComponentTagSchema",
      "type": "object"
    },
    "ContainerBoundaryStyleSchema": {
      "additionalProperties": false,
      "properties": {
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional custom type/stereotype label.",
          "title": "Stereotype"
        },
        "type": {
          "const": "ContainerBoundaryStyle",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font/text color.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line color.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shape macro used for rendering."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon applied to the boundary.",
          "title": "Sprite"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Legend label for this styled boundary.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Legend sprite for this styled boundary.",
          "title": "Legend Sprite"
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type"
      ],
      "title": "ContainerBoundaryStyleSchema",
      "type": "object"
    },
    "ContainerTagSchema": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "ContainerTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the element.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used for labels.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the element border.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Technology label shown on the element.",
          "title": "Technology"
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the element border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "ContainerTagSchema",
      "type": "object"
    },
    "Details": {
      "description": "Defines PlantUML legend details.",
      "enum": [
        "Small",
        "Normal",
        "None"
      ],
      "title": "Details",
      "type": "string"
    },
    "DiagramElementPropertiesSchema": {
      "properties": {
        "show_header": {
          "default": true,
          "description": "Whether to display the header row.",
          "title": "Show Header",
          "type": "boolean"
        },
        "header": {
          "default": [
            "Property",
            "Value"
          ],
          "description": "Header columns.",
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "title": "Header",
          "type": "array"
        },
        "properties": {
          "type": "array",
          "items": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "List of rows (each row is a list of string values).",
          "title": "Properties"
        }
      },
      "required": [
        "properties"
      ],
      "title": "DiagramElementPropertiesSchema",
      "type": "object"
    },
    "DiagramLayout": {
      "description": "Defines layout direction options for a PlantUML diagram.\n\nThis enum controls how diagram elements are arranged visually using\npredefined PlantUML layout macros.",
      "enum": [
        "LAYOUT_TOP_DOWN",
        "LAYOUT_LEFT_RIGHT",
        "LAYOUT_LANDSCAPE"
      ],
      "title": "DiagramLayout",
      "type": "string"
    },
    "ElementStyleSchema": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "ElementStyle",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "element_name": {
          "description": "C4 element type to style (e.g. 'person', 'system', 'container'). This applies to all elements of the given type, not a specific instance.",
          "title": "Element Name",
          "type": "string"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font/text color.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line color.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shape macro used for rendering."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon applied to the element.",
          "title": "Sprite"
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Technology label shown on the element.",
          "title": "Technology"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Legend label for this styled element.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Legend sprite for this styled element.",
          "title": "Legend Sprite"
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "element_name"
      ],
      "title": "ElementStyleSchema",
      "type": "object"
    },
    "ElementTagSchema": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "ElementTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the element.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used for labels.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the element border.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Technology label shown on the element.",
          "title": "Technology"
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the element border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "ElementTagSchema",
      "type": "object"
    },
    "EnterpriseBoundaryStyleSchema": {
      "additionalProperties": false,
      "properties": {
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional custom type/stereotype label.",
          "title": "Stereotype"
        },
        "type": {
          "const": "EnterpriseBoundaryStyle",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font/text color.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line color.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shape macro used for rendering."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon applied to the boundary.",
          "title": "Sprite"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Legend label for this styled boundary.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Legend sprite for this styled boundary.",
          "title": "Legend Sprite"
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type"
      ],
      "title": "EnterpriseBoundaryStyleSchema",
      "type": "object"
    },
    "ExternalComponentTagSchema": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "ExternalComponentTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the element.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used for labels.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the element border.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Technology label shown on the element.",
          "title": "Technology"
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the element border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "ExternalComponentTagSchema",
      "type": "object"
    },
    "ExternalContainerTagSchema": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "ExternalContainerTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the element.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used for labels.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the element border.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Technology label shown on the element.",
          "title": "Technology"
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the element border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "ExternalContainerTagSchema",
      "type": "object"
    },
    "ExternalPersonTagSchema": {
      "additionalProperties": false,
      "properties": {
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional custom type/stereotype label.",
          "title": "Stereotype"
        },
        "type": {
          "const": "ExternalPersonTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the person symbol.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used in the label.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border color of the person symbol.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the person border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "ExternalPersonTagSchema",
      "type": "object"
    },
    "ExternalSystemTagSchema": {
      "additionalProperties": false,
      "properties": {
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional custom type/stereotype label.",
          "title": "Stereotype"
        },
        "type": {
          "const": "ExternalSystemTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the system element.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used in system labels.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border color of the system element.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the system border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "ExternalSystemTagSchema",
      "type": "object"
    },
    "LayoutSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "from": "web_app",
          "to": "orders_api",
          "type": "LAY_R"
        }
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/LayoutType",
          "description": "Type of the layout."
        },
        "from": {
          "description": "The source element alias (or unique label).",
          "minLength": 1,
          "title": "From",
          "type": "string"
        },
        "to": {
          "description": "The destination element alias (or unique label).",
          "minLength": 1,
          "title": "To",
          "type": "string"
        }
      },
      "required": [
        "type",
        "from",
        "to"
      ],
      "title": "Layout",
      "type": "object"
    },
    "LayoutType": {
      "description": "Enum representing layout modifiers for diagram elements.",
      "enum": [
        "LAY_D",
        "LAY_DOWN",
        "LAY_U",
        "LAY_UP",
        "LAY_R",
        "LAY_RIGHT",
        "LAY_L",
        "LAY_LEFT"
      ],
      "title": "LayoutType",
      "type": "string"
    },
    "LineStyle": {
      "description": "Defines PlantUML line style.",
      "enum": [
        "DashedLine",
        "DottedLine",
        "BoldLine",
        "SolidLine"
      ],
      "title": "LineStyle",
      "type": "string"
    },
    "NodeTagSchema": {
      "additionalProperties": false,
      "properties": {
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional custom type/stereotype label.",
          "title": "Stereotype"
        },
        "type": {
          "const": "NodeTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the node.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used for node labels.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the node border.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Node border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the node border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "NodeTagSchema",
      "type": "object"
    },
    "PersonTagSchema": {
      "additionalProperties": false,
      "properties": {
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional custom type/stereotype label.",
          "title": "Stereotype"
        },
        "type": {
          "const": "PersonTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the person symbol.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used in the label.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border color of the person symbol.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the person border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "PersonTagSchema",
      "type": "object"
    },
    "PlantUMLContainerDbExtSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "fraud_vendor_db",
          "description": "External datastore used to look up fraud signals.",
          "label": "Fraud Vendor Database",
          "properties": {
            "properties": [
              [
                "Provider",
                "FraudCo"
              ],
              [
                "Access",
                "Read-only"
              ]
            ]
          },
          "technology": "Vendor DB",
          "type": "ContainerDbExt"
        }
      ],
      "properties": {
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "type": {
          "const": "ContainerDbExt",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "ContainerDbExt",
      "type": "object"
    },
    "PlantUMLContainerDbSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "catalog_db",
          "description": "Stores products, categories, and pricing data.",
          "label": "Catalog Database",
          "properties": {
            "properties": [
              [
                "Engine",
                "PostgreSQL 16"
              ],
              [
                "Replication",
                "Streaming"
              ]
            ]
          },
          "technology": "PostgreSQL",
          "type": "ContainerDb"
        }
      ],
      "properties": {
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "type": {
          "const": "ContainerDb",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "ContainerDb",
      "type": "object"
    },
    "PlantUMLContainerExtSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "recommendation_api",
          "description": "External API that returns personalized product recommendations.",
          "label": "Recommendation Engine API",
          "properties": {
            "properties": [
              [
                "SLA",
                "99.9%"
              ],
              [
                "Owner",
                "Partner"
              ]
            ]
          },
          "technology": "REST API",
          "type": "ContainerExt"
        }
      ],
      "properties": {
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "type": {
          "const": "ContainerExt",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "ContainerExt",
      "type": "object"
    },
    "PlantUMLContainerQueueExtSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "partner_fulfillment_topic",
          "description": "External topic with fulfillment status updates.",
          "label": "Partner Fulfillment Topic",
          "properties": {
            "properties": [
              [
                "Broker",
                "Managed Kafka"
              ],
              [
                "Format",
                "Avro"
              ]
            ]
          },
          "technology": "Kafka",
          "type": "ContainerQueueExt"
        }
      ],
      "properties": {
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "type": {
          "const": "ContainerQueueExt",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "ContainerQueueExt",
      "type": "object"
    },
    "PlantUMLContainerQueueSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "payment_events_queue",
          "description": "Carries asynchronous payment status updates.",
          "label": "Payment Events Queue",
          "properties": {
            "properties": [
              [
                "Durable",
                "true"
              ],
              [
                "DLQ",
                "payment_events_dlq"
              ]
            ]
          },
          "technology": "RabbitMQ",
          "type": "ContainerQueue"
        }
      ],
      "properties": {
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "type": {
          "const": "ContainerQueue",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "ContainerQueue",
      "type": "object"
    },
    "PlantUMLContainerSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "backend_api",
          "description": "Main backend API serving web and mobile clients.",
          "label": "Backend API",
          "properties": {
            "properties": [
              [
                "Runtime",
                "Python 3.12"
              ],
              [
                "Team",
                "Platform"
              ]
            ]
          },
          "technology": "Python / FastAPI",
          "type": "Container"
        }
      ],
      "properties": {
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "type": {
          "const": "Container",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "Container",
      "type": "object"
    },
    "PlantUMLDeploymentNodeLeftSchema": {
      "additionalProperties": false,
      "properties": {
        "relationships": {
          "description": "Top-level relationships.",
          "items": {
            "$ref": "#/$defs/PlantUMLRelationshipSchema"
          },
          "title": "Relationships",
          "type": "array"
        },
        "elements": {
          "description": "Top-level elements.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLPersonSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLPersonExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueExtSchema"
              }
            ]
          },
          "title": "Elements",
          "type": "array"
        },
        "boundaries": {
          "description": "Top-level boundaries.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeRightSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeRightSchema"
              }
            ]
          },
          "title": "Boundaries",
          "type": "array"
        },
        "type": {
          "const": "DeploymentNodeLeft",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the boundary.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "DeploymentNodeLeft",
      "type": "object"
    },
    "PlantUMLDeploymentNodeRightSchema": {
      "additionalProperties": false,
      "properties": {
        "relationships": {
          "description": "Top-level relationships.",
          "items": {
            "$ref": "#/$defs/PlantUMLRelationshipSchema"
          },
          "title": "Relationships",
          "type": "array"
        },
        "elements": {
          "description": "Top-level elements.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLPersonSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLPersonExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueExtSchema"
              }
            ]
          },
          "title": "Elements",
          "type": "array"
        },
        "boundaries": {
          "description": "Top-level boundaries.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeRightSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeRightSchema"
              }
            ]
          },
          "title": "Boundaries",
          "type": "array"
        },
        "type": {
          "const": "DeploymentNodeRight",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the boundary.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "DeploymentNodeRight",
      "type": "object"
    },
    "PlantUMLDeploymentNodeSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "k8s_cluster",
          "description": "Primary runtime cluster for web and API workloads.",
          "label": "Kubernetes Cluster",
          "properties": {
            "properties": [
              [
                "Platform",
                "EKS"
              ],
              [
                "Region",
                "eu-central-1"
              ]
            ]
          },
          "type": "DeploymentNode"
        }
      ],
      "properties": {
        "relationships": {
          "description": "Top-level relationships.",
          "items": {
            "$ref": "#/$defs/PlantUMLRelationshipSchema"
          },
          "title": "Relationships",
          "type": "array"
        },
        "elements": {
          "description": "Top-level elements.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLPersonSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLPersonExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueExtSchema"
              }
            ]
          },
          "title": "Elements",
          "type": "array"
        },
        "boundaries": {
          "description": "Top-level boundaries.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeRightSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeRightSchema"
              }
            ]
          },
          "title": "Boundaries",
          "type": "array"
        },
        "type": {
          "const": "DeploymentNode",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the boundary.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "DeploymentNode",
      "type": "object"
    },
    "PlantUMLNodeLeftSchema": {
      "additionalProperties": false,
      "properties": {
        "relationships": {
          "description": "Top-level relationships.",
          "items": {
            "$ref": "#/$defs/PlantUMLRelationshipSchema"
          },
          "title": "Relationships",
          "type": "array"
        },
        "elements": {
          "description": "Top-level elements.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLPersonSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLPersonExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueExtSchema"
              }
            ]
          },
          "title": "Elements",
          "type": "array"
        },
        "boundaries": {
          "description": "Top-level boundaries.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeRightSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeRightSchema"
              }
            ]
          },
          "title": "Boundaries",
          "type": "array"
        },
        "type": {
          "const": "NodeLeft",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the boundary.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "NodeLeft",
      "type": "object"
    },
    "PlantUMLNodeRightSchema": {
      "additionalProperties": false,
      "properties": {
        "relationships": {
          "description": "Top-level relationships.",
          "items": {
            "$ref": "#/$defs/PlantUMLRelationshipSchema"
          },
          "title": "Relationships",
          "type": "array"
        },
        "elements": {
          "description": "Top-level elements.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLPersonSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLPersonExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueExtSchema"
              }
            ]
          },
          "title": "Elements",
          "type": "array"
        },
        "boundaries": {
          "description": "Top-level boundaries.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeRightSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeRightSchema"
              }
            ]
          },
          "title": "Boundaries",
          "type": "array"
        },
        "type": {
          "const": "NodeRight",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the boundary.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "NodeRight",
      "type": "object"
    },
    "PlantUMLNodeSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "aws_account",
          "description": "Top-level cloud account hosting the production platform.",
          "label": "AWS Account",
          "properties": {
            "properties": [
              [
                "Environment",
                "Production"
              ],
              [
                "Region Scope",
                "eu-central-1"
              ]
            ]
          },
          "type": "Node"
        }
      ],
      "properties": {
        "relationships": {
          "description": "Top-level relationships.",
          "items": {
            "$ref": "#/$defs/PlantUMLRelationshipSchema"
          },
          "title": "Relationships",
          "type": "array"
        },
        "elements": {
          "description": "Top-level elements.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLPersonSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLPersonExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLSystemQueueExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerDbExtSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLContainerQueueExtSchema"
              }
            ]
          },
          "title": "Elements",
          "type": "array"
        },
        "boundaries": {
          "description": "Top-level boundaries.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/PlantUMLNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLNodeRightSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeLeftSchema"
              },
              {
                "$ref": "#/$defs/PlantUMLDeploymentNodeRightSchema"
              }
            ]
          },
          "title": "Boundaries",
          "type": "array"
        },
        "type": {
          "const": "Node",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the boundary.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "Node",
      "type": "object"
    },
    "PlantUMLPersonExtSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "auditor",
          "description": "External compliance reviewer.",
          "label": "Auditor",
          "properties": {
            "properties": [
              [
                "Organization",
                "Compliance Partner"
              ],
              [
                "Access",
                "Read-only"
              ]
            ]
          },
          "type": "PersonExt"
        }
      ],
      "properties": {
        "type": {
          "const": "PersonExt",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "PersonExt",
      "type": "object"
    },
    "PlantUMLPersonSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "store_manager",
          "description": "Manages product catalog and promotions.",
          "label": "Store Manager",
          "properties": {
            "properties": [
              [
                "Department",
                "Retail Ops"
              ],
              [
                "Role",
                "Manager"
              ]
            ]
          },
          "type": "Person"
        }
      ],
      "properties": {
        "type": {
          "const": "Person",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "Person",
      "type": "object"
    },
    "PlantUMLRelationshipSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "from": "web_app",
          "index": "2",
          "label": "Calls",
          "link": "https://example.com/contracts/orders",
          "sprite": "cloud",
          "tags": [
            "sync"
          ],
          "technology": "HTTPS",
          "to": "orders_api",
          "type": "REL_R"
        }
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/RelationshipType",
          "description": "Type of the relationship."
        },
        "from": {
          "description": "The source element alias (or unique label).",
          "minLength": 1,
          "title": "From",
          "type": "string"
        },
        "to": {
          "description": "The destination element alias (or unique label).",
          "minLength": 1,
          "title": "To",
          "type": "string"
        },
        "label": {
          "description": "The label shown on the relationship edge.",
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Additional details about the relationship.",
          "title": "Description"
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The technology used in the communication.",
          "title": "Technology"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon for the relationship.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML relationship tags.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the relationship.",
          "title": "Link"
        },
        "index": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML dynamic relationship index.",
          "title": "Index"
        }
      },
      "required": [
        "type",
        "from",
        "to",
        "label"
      ],
      "title": "Relationship",
      "type": "object"
    },
    "PlantUMLRenderOptionsSchema": {
      "additionalProperties": false,
      "properties": {
        "includes": {
          "description": "A list of PlantUML `!include` directives to be injected at the beginning of the diagram.",
          "items": {
            "type": "string"
          },
          "title": "Includes",
          "type": "array"
        },
        "layout": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramLayout"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Layout direction."
        },
        "layout_with_legend": {
          "default": false,
          "description": "Whether to apply the LAYOUT_WITH_LEGEND macro.",
          "title": "Layout With Legend",
          "type": "boolean"
        },
        "layout_as_sketch": {
          "default": false,
          "description": "Whether to apply the LAYOUT_AS_SKETCH macro.",
          "title": "Layout As Sketch",
          "type": "boolean"
        },
        "set_sketch_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/SetSketchStyleSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional sketch-style visual customization."
        },
        "show_legend": {
          "anyOf": [
            {
              "$ref": "#/$defs/ShowLegendSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Configuration for the SHOW_LEGEND macro."
        },
        "show_floating_legend": {
          "anyOf": [
            {
              "$ref": "#/$defs/ShowFloatingLegendSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Configuration for the SHOW_FLOATING_LEGEND macro."
        },
        "hide_stereotype": {
          "default": false,
          "description": "Whether to hide stereotype labels globally.",
          "title": "Hide Stereotype",
          "type": "boolean"
        },
        "hide_person_sprite": {
          "default": false,
          "description": "Whether to hide person sprites globally.",
          "title": "Hide Person Sprite",
          "type": "boolean"
        },
        "show_person_sprite": {
          "anyOf": [
            {
              "$ref": "#/$defs/ShowPersonSpriteSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Configuration for the SHOW_PERSON_SPRITE macro."
        },
        "show_person_portrait": {
          "default": false,
          "description": "Whether to enable person portraits.",
          "title": "Show Person Portrait",
          "type": "boolean"
        },
        "show_person_outline": {
          "default": false,
          "description": "Whether to enable person outlines.",
          "title": "Show Person Outline",
          "type": "boolean"
        },
        "without_property_header": {
          "default": false,
          "description": "If true, omit the header row and render the second column in bold.",
          "title": "Without Property Header",
          "type": "boolean"
        },
        "legend_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional title displayed above the legend.",
          "title": "Legend Title"
        },
        "tags": {
          "description": "List of tag macro configurations.",
          "items": {
            "discriminator": {
              "mapping": {
                "BoundaryTag": "#/$defs/BoundaryTagSchema",
                "ComponentTag": "#/$defs/ComponentTagSchema",
                "ContainerTag": "#/$defs/ContainerTagSchema",
                "ElementTag": "#/$defs/ElementTagSchema",
                "ExternalComponentTag": "#/$defs/ExternalComponentTagSchema",
                "ExternalContainerTag": "#/$defs/ExternalContainerTagSchema",
                "ExternalPersonTag": "#/$defs/ExternalPersonTagSchema",
                "ExternalSystemTag": "#/$defs/ExternalSystemTagSchema",
                "NodeTag": "#/$defs/NodeTagSchema",
                "PersonTag": "#/$defs/PersonTagSchema",
                "RelTag": "#/$defs/RelTagSchema",
                "SystemTag": "#/$defs/SystemTagSchema"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/$defs/ElementTagSchema"
              },
              {
                "$ref": "#/$defs/BoundaryTagSchema"
              },
              {
                "$ref": "#/$defs/ComponentTagSchema"
              },
              {
                "$ref": "#/$defs/ExternalComponentTagSchema"
              },
              {
                "$ref": "#/$defs/ContainerTagSchema"
              },
              {
                "$ref": "#/$defs/ExternalContainerTagSchema"
              },
              {
                "$ref": "#/$defs/NodeTagSchema"
              },
              {
                "$ref": "#/$defs/RelTagSchema"
              },
              {
                "$ref": "#/$defs/PersonTagSchema"
              },
              {
                "$ref": "#/$defs/ExternalPersonTagSchema"
              },
              {
                "$ref": "#/$defs/SystemTagSchema"
              },
              {
                "$ref": "#/$defs/ExternalSystemTagSchema"
              }
            ]
          },
          "title": "Tags",
          "type": "array"
        },
        "styles": {
          "description": "List of style update macro configurations.",
          "items": {
            "discriminator": {
              "mapping": {
                "BoundaryStyle": "#/$defs/BoundaryStyleSchema",
                "ContainerBoundaryStyle": "#/$defs/ContainerBoundaryStyleSchema",
                "ElementStyle": "#/$defs/ElementStyleSchema",
                "EnterpriseBoundaryStyle": "#/$defs/EnterpriseBoundaryStyleSchema",
                "RelStyle": "#/$defs/RelStyleSchema",
                "SystemBoundaryStyle": "#/$defs/SystemBoundaryStyleSchema"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/$defs/ElementStyleSchema"
              },
              {
                "$ref": "#/$defs/BoundaryStyleSchema"
              },
              {
                "$ref": "#/$defs/ContainerBoundaryStyleSchema"
              },
              {
                "$ref": "#/$defs/SystemBoundaryStyleSchema"
              },
              {
                "$ref": "#/$defs/EnterpriseBoundaryStyleSchema"
              },
              {
                "$ref": "#/$defs/RelStyleSchema"
              }
            ]
          },
          "title": "Styles",
          "type": "array"
        }
      },
      "title": "PlantUMLRenderOptionsSchema",
      "type": "object"
    },
    "PlantUMLSystemDbExtSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "credit_bureau_db",
          "description": "External database with risk assessment data.",
          "label": "Credit Bureau DB",
          "properties": {
            "properties": [
              [
                "Provider",
                "RiskCo"
              ],
              [
                "Access",
                "Read-only"
              ]
            ]
          },
          "type": "SystemDbExt"
        }
      ],
      "properties": {
        "type": {
          "const": "SystemDbExt",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "SystemDbExt",
      "type": "object"
    },
    "PlantUMLSystemDbSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "customer_profile_db",
          "description": "Stores customer preferences and account metadata.",
          "label": "Customer Profile DB",
          "properties": {
            "properties": [
              [
                "Engine",
                "PostgreSQL"
              ],
              [
                "Backup",
                "Daily"
              ]
            ]
          },
          "type": "SystemDb"
        }
      ],
      "properties": {
        "type": {
          "const": "SystemDb",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "SystemDb",
      "type": "object"
    },
    "PlantUMLSystemExtSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "shipping_provider",
          "description": "External logistics platform for shipment booking and tracking.",
          "label": "Shipping Provider",
          "properties": {
            "properties": [
              [
                "Protocol",
                "REST"
              ],
              [
                "SLA",
                "99.9%"
              ]
            ]
          },
          "type": "SystemExt"
        }
      ],
      "properties": {
        "type": {
          "const": "SystemExt",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "SystemExt",
      "type": "object"
    },
    "PlantUMLSystemQueueExtSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "partner_events_topic",
          "description": "External event topic carrying delivery status updates.",
          "label": "Partner Events Topic",
          "properties": {
            "properties": [
              [
                "Broker",
                "Kafka"
              ],
              [
                "Format",
                "Avro"
              ]
            ]
          },
          "type": "SystemQueueExt"
        }
      ],
      "properties": {
        "type": {
          "const": "SystemQueueExt",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "SystemQueueExt",
      "type": "object"
    },
    "PlantUMLSystemQueueSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "order_events_stream",
          "description": "Internal stream of order lifecycle events.",
          "label": "Order Events Stream",
          "properties": {
            "properties": [
              [
                "Retention",
                "7 days"
              ],
              [
                "Partitions",
                "12"
              ]
            ]
          },
          "type": "SystemQueue"
        }
      ],
      "properties": {
        "type": {
          "const": "SystemQueue",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "SystemQueue",
      "type": "object"
    },
    "PlantUMLSystemSchema": {
      "additionalProperties": false,
      "examples": [
        {
          "alias": "inventory_service",
          "description": "Tracks stock levels and reservation state.",
          "label": "Inventory Service",
          "properties": {
            "properties": [
              [
                "Language",
                "Python"
              ],
              [
                "Team",
                "Supply Chain"
              ]
            ]
          },
          "type": "System"
        }
      ],
      "properties": {
        "type": {
          "const": "System",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "label": {
          "description": "Display name for the element.",
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional description text.",
          "title": "Description"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for the element. If not provided, it is autogenerated from the label.",
          "title": "Alias"
        },
        "properties": {
          "anyOf": [
            {
              "$ref": "#/$defs/DiagramElementPropertiesSchema"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional property table metadata."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional technology label where supported by the element.",
          "title": "Technology"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML sprite/icon reference.",
          "title": "Sprite"
        },
        "tags": {
          "description": "Optional PlantUML tags for styling or grouping.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML URL associated with the element.",
          "title": "Link"
        },
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML custom type/stereotype label.",
          "title": "Stereotype"
        },
        "base_shape": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional PlantUML base shape override.",
          "title": "Base Shape"
        }
      },
      "required": [
        "type",
        "label"
      ],
      "title": "System",
      "type": "object"
    },
    "RelStyleSchema": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "RelStyle",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "text_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the relationship label text.",
          "title": "Text Color"
        },
        "line_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the relationship line.",
          "title": "Line Color"
        }
      },
      "required": [
        "type"
      ],
      "title": "RelStyleSchema",
      "type": "object"
    },
    "RelTagSchema": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "RelTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "text_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the relationship label text.",
          "title": "Text Color"
        },
        "line_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color of the relationship line.",
          "title": "Line Color"
        },
        "line_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Relationship line style macro."
        },
        "line_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the relationship line.",
          "title": "Line Thickness"
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Technology label associated with the relationship.",
          "title": "Technology"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "RelTagSchema",
      "type": "object"
    },
    "RelationshipType": {
      "description": "Relationship dispatch keys used by relationship DSL classes.\n\n`REL` is the portable core relationship type. The other values map to\nbackend-specific C4-PlantUML relationship macros and should normally be\nused through `c4.contrib.plantuml` relationship classes.",
      "enum": [
        "REL",
        "BI_REL",
        "REL_BACK",
        "REL_NEIGHBOR",
        "BI_REL_NEIGHBOR",
        "REL_BACK_NEIGHBOR",
        "REL_D",
        "REL_DOWN",
        "BI_REL_D",
        "BI_REL_DOWN",
        "REL_U",
        "REL_UP",
        "BI_REL_U",
        "BI_REL_UP",
        "REL_L",
        "REL_LEFT",
        "BI_REL_L",
        "BI_REL_LEFT",
        "REL_R",
        "REL_RIGHT",
        "BI_REL_R",
        "BI_REL_RIGHT"
      ],
      "title": "RelationshipType",
      "type": "string"
    },
    "SetSketchStyleSchema": {
      "additionalProperties": false,
      "properties": {
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the diagram.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color for all diagram text.",
          "title": "Font Color"
        },
        "warning_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Color used for warning messages in the footer.",
          "title": "Warning Color"
        },
        "font_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font family name to use.",
          "title": "Font Name"
        },
        "footer_warning": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional warning message shown in the footer.",
          "title": "Footer Warning"
        },
        "footer_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional footer text message.",
          "title": "Footer Text"
        }
      },
      "title": "SetSketchStyleSchema",
      "type": "object"
    },
    "ShowFloatingLegendSchema": {
      "additionalProperties": false,
      "properties": {
        "hide_stereotype": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Whether to hide stereotype labels in the legend.",
          "title": "Hide Stereotype"
        },
        "details": {
          "$ref": "#/$defs/Details",
          "default": "Small",
          "description": "Legend detail level."
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional alias for the floating legend box.",
          "title": "Alias"
        }
      },
      "title": "ShowFloatingLegendSchema",
      "type": "object"
    },
    "ShowLegendSchema": {
      "additionalProperties": false,
      "properties": {
        "hide_stereotype": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Whether to hide stereotype labels in the legend.",
          "title": "Hide Stereotype"
        },
        "details": {
          "$ref": "#/$defs/Details",
          "default": "Small",
          "description": "Legend detail level."
        }
      },
      "title": "ShowLegendSchema",
      "type": "object"
    },
    "ShowPersonSpriteSchema": {
      "additionalProperties": false,
      "properties": {
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional sprite alias used for the person icon.",
          "title": "Alias"
        }
      },
      "title": "ShowPersonSpriteSchema",
      "type": "object"
    },
    "SystemBoundaryStyleSchema": {
      "additionalProperties": false,
      "properties": {
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional custom type/stereotype label.",
          "title": "Stereotype"
        },
        "type": {
          "const": "SystemBoundaryStyle",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font/text color.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line color.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shape macro used for rendering."
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon applied to the boundary.",
          "title": "Sprite"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Legend label for this styled boundary.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Legend sprite for this styled boundary.",
          "title": "Legend Sprite"
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type"
      ],
      "title": "SystemBoundaryStyleSchema",
      "type": "object"
    },
    "SystemTagSchema": {
      "additionalProperties": false,
      "properties": {
        "stereotype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional custom type/stereotype label.",
          "title": "Stereotype"
        },
        "type": {
          "const": "SystemTag",
          "description": "Discriminator identifying the element type.",
          "title": "Type",
          "type": "string"
        },
        "tag_stereo": {
          "description": "Stereotype name of the tag. Must match one of the tags declared in the `tags` field of a diagram component.",
          "title": "Tag Stereo",
          "type": "string"
        },
        "legend_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Text shown in the diagram legend for this tag.",
          "title": "Legend Text"
        },
        "legend_sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite displayed in the legend for this tag.",
          "title": "Legend Sprite"
        },
        "sprite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sprite icon associated with the element or relationship.",
          "title": "Sprite"
        },
        "bg_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Background color of the system element.",
          "title": "Bg Color"
        },
        "font_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Font color used in system labels.",
          "title": "Font Color"
        },
        "border_color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border color of the system element.",
          "title": "Border Color"
        },
        "shadowing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "description": "Shadow style/toggle.",
          "title": "Shadowing"
        },
        "shape": {
          "anyOf": [
            {
              "$ref": "#/$defs/TagShape"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional shape macro used for rendering."
        },
        "border_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/LineStyle"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Border line style macro."
        },
        "border_thickness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Thickness of the system border line.",
          "title": "Border Thickness"
        }
      },
      "required": [
        "type",
        "tag_stereo"
      ],
      "title": "SystemTagSchema",
      "type": "object"
    },
    "TagShape": {
      "description": "Defines PlantUML tag shape.",
      "enum": [
        "EightSidedShape",
        "RoundedBoxShape"
      ],
      "title": "TagShape",
      "type": "string"
    }
  }
}
