Skip to content

Structurizr Workspace Spec

Source: structurizr.workspace.json

This schema describes the Workspace workspace spec for the Structurizr backend.

Properties

Properties

Field Type Description
render_options StructurizrRenderOptionsSchema
backend(required) string Required discriminator for the Structurizr workspace JSON format. Must be exactly structurizr.
description string | null Description
model(required) StructurizrModelSchema
name string Workspace name; defaults to the renderer's Workspace fallback. Default: Workspace.
properties object Properties
styles StructurizrStylesSchema
theme string | null Theme
views(required) StructurizrViewsSchema
Examples
JSON source
{
  "backend": "structurizr",
  "model": {
    "people": [
      {
        "id": "customer",
        "name": "Customer"
      }
    ],
    "software_systems": [
      {
        "id": "shop",
        "name": "Online Shop"
      }
    ],
    "relationships": [
      {
        "from": "customer",
        "to": "shop",
        "description": "Buys goods"
      }
    ]
  },
  "views": {
    "items": [
      {
        "type": "system_landscape",
        "key": "landscape"
      }
    ]
  }
}
Rendered Structurizr DSL source
workspace "Workspace" {
  model {
    customer = person "Customer" {
      tags "Person"
    }
    shop = softwareSystem "Online Shop" {
      tags "Software System"
    }
    customer -> shop "Buys goods" {
      tags "Relationship"
    }
  }
  views {
    systemLandscape "landscape" {
      include *
      autoLayout lr
    }
    styles {
      element "Person" {
        shape Person
        background #08427b
        color #ffffff
        fontSize 22
      }
      element "Software System" {
        background #1168bd
        color #ffffff
      }
      element "Container" {
        background #438dd5
        color #ffffff
      }
      element "Component" {
        background #85bbf0
        color #000000
      }
      element "Database" {
        shape Cylinder
      }
      element "Queue" {
        shape Pipe
      }
      element "External" {
        background #999999
        color #ffffff
      }
      element "Boundary" {
        stroke #444444
        strokeWidth 1
        border Dashed
      }
    }
  }
}
JSON source
{
  "backend": "structurizr",
  "name": "Payments",
  "description": "Payments architecture",
  "theme": "default",
  "styles": {
    "elements": [
      {
        "target": "Person",
        "properties": {
          "shape": "Person"
        }
      },
      {
        "target": "Staff",
        "properties": {
          "background": "#455a64",
          "color": "#ffffff"
        }
      },
      {
        "target": "External",
        "properties": {
          "background": "#999999",
          "color": "#ffffff",
          "border": "Dashed"
        }
      },
      {
        "target": "Critical",
        "properties": {
          "background": "#ffcc00",
          "color": "#111111"
        }
      },
      {
        "target": "Frontend",
        "properties": {
          "shape": "WebBrowser"
        }
      },
      {
        "target": "Mobile",
        "properties": {
          "shape": "MobileDevicePortrait"
        }
      },
      {
        "target": "Storage",
        "properties": {
          "shape": "Cylinder"
        }
      },
      {
        "target": "Queue",
        "properties": {
          "shape": "Pipe"
        }
      },
      {
        "target": "Worker",
        "properties": {
          "shape": "Hexagon"
        }
      }
    ],
    "relationships": [
      {
        "target": "Persistent",
        "properties": {
          "thickness": 4
        }
      },
      {
        "target": "Async",
        "properties": {
          "border": "Dashed"
        }
      },
      {
        "target": "Critical",
        "properties": {
          "color": "#c62828",
          "thickness": 3
        }
      }
    ]
  },
  "model": {
    "people": [
      {
        "id": "customer",
        "name": "Customer",
        "description": "Pays for goods and services.",
        "tags": [
          "External"
        ],
        "properties": {
          "segment": "retail"
        },
        "url": "https://example.com/customer"
      },
      {
        "id": "agent",
        "name": "Support Agent",
        "description": "Investigates failed and disputed payments.",
        "tags": [
          "Staff"
        ]
      },
      {
        "id": "analyst",
        "name": "Fraud Analyst",
        "description": "Reviews suspicious transactions.",
        "tags": [
          "Staff"
        ]
      }
    ],
    "software_systems": [
      {
        "id": "payments",
        "name": "Payments",
        "description": "Collects money.",
        "containers": [
          {
            "id": "web",
            "name": "Web App",
            "description": "Customer checkout UI.",
            "technology": "Django",
            "tags": [
              "Frontend"
            ]
          },
          {
            "id": "mobile",
            "name": "Mobile App",
            "description": "Checkout and payment history on phones.",
            "technology": "React Native",
            "tags": [
              "Mobile"
            ]
          },
          {
            "id": "backoffice",
            "name": "Back Office",
            "description": "Payment search, refunds and disputes.",
            "technology": "React",
            "tags": [
              "Frontend"
            ]
          },
          {
            "id": "api",
            "name": "API",
            "description": "Checkout API.",
            "technology": "FastAPI",
            "tags": [
              "Critical"
            ],
            "components": [
              {
                "id": "controller",
                "name": "Checkout Controller",
                "description": "Validates requests and exposes the checkout endpoints.",
                "technology": "FastAPI Router"
              },
              {
                "id": "checkout",
                "name": "Checkout",
                "description": "Orchestrates a payment from cart to confirmation.",
                "technology": "Python"
              },
              {
                "id": "risk_client",
                "name": "Risk Client",
                "description": "Asks the fraud engine to score a payment.",
                "technology": "gRPC"
              },
              {
                "id": "psp_adapter",
                "name": "PSP Adapter",
                "description": "Talks to the payment provider and maps its errors.",
                "technology": "Python"
              },
              {
                "id": "ledger_repo",
                "name": "Ledger Repository",
                "description": "Persists payments and double-entry ledger records.",
                "technology": "SQLAlchemy"
              },
              {
                "id": "events",
                "name": "Event Publisher",
                "description": "Publishes payment lifecycle events.",
                "technology": "Python"
              }
            ]
          },
          {
            "id": "fraud",
            "name": "Fraud Engine",
            "description": "Scores payments in real time.",
            "technology": "Python / scikit-learn",
            "tags": [
              "Critical"
            ]
          },
          {
            "id": "worker",
            "name": "Settlement Worker",
            "description": "Settles captured payments and sends receipts.",
            "technology": "Celery",
            "tags": [
              "Worker"
            ]
          },
          {
            "id": "broker",
            "name": "Message Broker",
            "description": "Payment lifecycle events.",
            "technology": "RabbitMQ",
            "tags": [
              "Queue"
            ]
          },
          {
            "id": "cache",
            "name": "Session Cache",
            "description": "Idempotency keys and checkout sessions.",
            "technology": "Redis",
            "tags": [
              "Storage"
            ]
          },
          {
            "id": "database",
            "name": "Database",
            "description": "Payments and ledger.",
            "technology": "PostgreSQL",
            "tags": [
              "Storage"
            ]
          }
        ]
      },
      {
        "id": "psp",
        "name": "Payment Provider",
        "description": "Card acquiring and 3-D Secure.",
        "tags": [
          "External"
        ]
      },
      {
        "id": "bank",
        "name": "Banking Network",
        "description": "Settles funds with issuing banks.",
        "tags": [
          "External"
        ]
      },
      {
        "id": "identity",
        "name": "Identity Provider",
        "description": "Authenticates customers and staff.",
        "tags": [
          "External"
        ]
      },
      {
        "id": "notifier",
        "name": "Notification Service",
        "description": "Delivers e-mail and SMS receipts.",
        "tags": [
          "External"
        ]
      }
    ],
    "relationships": [
      {
        "from": "customer",
        "to": "web",
        "description": "Uses",
        "technology": "HTTPS"
      },
      {
        "from": "customer",
        "to": "mobile",
        "description": "Uses",
        "technology": "HTTPS"
      },
      {
        "from": "agent",
        "to": "backoffice",
        "description": "Looks up payments",
        "technology": "HTTPS"
      },
      {
        "from": "analyst",
        "to": "backoffice",
        "description": "Reviews flagged payments",
        "technology": "HTTPS"
      },
      {
        "from": "web",
        "to": "api",
        "description": "Calls",
        "technology": "JSON/HTTPS"
      },
      {
        "from": "mobile",
        "to": "api",
        "description": "Calls",
        "technology": "JSON/HTTPS"
      },
      {
        "from": "backoffice",
        "to": "api",
        "description": "Calls",
        "technology": "JSON/HTTPS"
      },
      {
        "from": "web",
        "to": "identity",
        "description": "Signs customers in",
        "technology": "OIDC"
      },
      {
        "from": "backoffice",
        "to": "identity",
        "description": "Signs staff in",
        "technology": "OIDC"
      },
      {
        "from": "api",
        "to": "cache",
        "description": "Reads and writes sessions",
        "technology": "Redis protocol"
      },
      {
        "from": "api",
        "to": "fraud",
        "description": "Scores payments",
        "technology": "gRPC"
      },
      {
        "from": "api",
        "to": "psp",
        "description": "Authorises and captures",
        "technology": "HTTPS",
        "tags": [
          "Critical"
        ]
      },
      {
        "from": "api",
        "to": "broker",
        "description": "Publishes events",
        "technology": "AMQP",
        "tags": [
          "Async"
        ]
      },
      {
        "from": "api",
        "to": "database",
        "description": "Reads from and writes to",
        "technology": "SQL",
        "tags": [
          "Persistent"
        ]
      },
      {
        "from": "fraud",
        "to": "database",
        "description": "Reads payment history",
        "technology": "SQL"
      },
      {
        "from": "broker",
        "to": "worker",
        "description": "Delivers events",
        "technology": "AMQP",
        "tags": [
          "Async"
        ]
      },
      {
        "from": "worker",
        "to": "database",
        "description": "Updates settlements",
        "technology": "SQL",
        "tags": [
          "Persistent"
        ]
      },
      {
        "from": "worker",
        "to": "bank",
        "description": "Submits settlement files",
        "technology": "SFTP"
      },
      {
        "from": "worker",
        "to": "notifier",
        "description": "Sends receipts",
        "technology": "HTTPS",
        "tags": [
          "Async"
        ]
      },
      {
        "from": "psp",
        "to": "bank",
        "description": "Routes card transactions",
        "technology": "ISO 8583"
      },
      {
        "from": "web",
        "to": "controller",
        "description": "Submits checkout",
        "technology": "JSON/HTTPS"
      },
      {
        "from": "mobile",
        "to": "controller",
        "description": "Submits checkout",
        "technology": "JSON/HTTPS"
      },
      {
        "from": "backoffice",
        "to": "controller",
        "description": "Requests refunds",
        "technology": "JSON/HTTPS"
      },
      {
        "from": "controller",
        "to": "checkout",
        "description": "Starts payment"
      },
      {
        "from": "checkout",
        "to": "risk_client",
        "description": "Requests risk score"
      },
      {
        "from": "checkout",
        "to": "psp_adapter",
        "description": "Charges the card"
      },
      {
        "from": "checkout",
        "to": "ledger_repo",
        "description": "Records payment"
      },
      {
        "from": "checkout",
        "to": "events",
        "description": "Emits payment events"
      },
      {
        "from": "risk_client",
        "to": "fraud",
        "description": "Scores payments",
        "technology": "gRPC"
      },
      {
        "from": "psp_adapter",
        "to": "psp",
        "description": "Authorises and captures",
        "technology": "HTTPS",
        "tags": [
          "Critical"
        ]
      },
      {
        "from": "ledger_repo",
        "to": "database",
        "description": "Reads from and writes to",
        "technology": "SQL",
        "tags": [
          "Persistent"
        ]
      },
      {
        "from": "events",
        "to": "broker",
        "description": "Publishes events",
        "technology": "AMQP",
        "tags": [
          "Async"
        ]
      }
    ]
  },
  "views": {
    "items": [
      {
        "type": "system_landscape",
        "key": "landscape"
      },
      {
        "type": "system_context",
        "scope": "payments",
        "key": "context",
        "include": [
          "*"
        ],
        "exclude": [
          "relationship.tag==Deprecated"
        ]
      },
      {
        "type": "container",
        "scope": "payments",
        "key": "containers",
        "include": [
          "*",
          "element.tag==Storage"
        ],
        "auto_layout": {
          "rank_direction": "TopBottom"
        },
        "animation": [
          [
            {
              "id": "customer"
            },
            {
              "id": "web"
            },
            {
              "id": "mobile"
            }
          ],
          [
            {
              "id": "api"
            },
            {
              "id": "cache"
            },
            {
              "id": "fraud"
            }
          ],
          [
            {
              "id": "database"
            },
            {
              "id": "broker"
            },
            {
              "id": "worker"
            }
          ]
        ]
      },
      {
        "type": "component",
        "scope": "api",
        "key": "components",
        "auto_layout": {
          "rank_direction": "TopBottom"
        }
      },
      {
        "type": "dynamic",
        "scope": "payments",
        "key": "checkout-flow",
        "steps": [
          {
            "from": "customer",
            "to": "web",
            "description": "Starts checkout",
            "technology": "HTTPS"
          },
          {
            "from": "web",
            "to": "api",
            "description": "Submits checkout",
            "technology": "JSON/HTTPS"
          },
          {
            "from": "api",
            "to": "fraud",
            "description": "Scores the payment",
            "technology": "gRPC"
          },
          {
            "from": "api",
            "to": "psp",
            "description": "Authorises the card",
            "technology": "HTTPS"
          },
          {
            "from": "api",
            "to": "database",
            "description": "Persists checkout",
            "technology": "SQL"
          },
          {
            "from": "api",
            "to": "broker",
            "description": "Publishes payment captured",
            "technology": "AMQP"
          }
        ]
      },
      {
        "type": "dynamic",
        "scope": "payments",
        "key": "settlement-flow",
        "steps": [
          {
            "from": "broker",
            "to": "worker",
            "description": "Delivers payment captured",
            "technology": "AMQP"
          },
          {
            "from": "worker",
            "to": "database",
            "description": "Marks payment as settled",
            "technology": "SQL"
          },
          {
            "from": "worker",
            "to": "bank",
            "description": "Submits settlement file",
            "technology": "SFTP"
          },
          {
            "from": "worker",
            "to": "notifier",
            "description": "Sends receipt",
            "technology": "HTTPS"
          }
        ]
      }
    ]
  }
}
Rendered Structurizr DSL source
workspace "Payments" {
  description "Payments architecture"
  model {
    customer = person "Customer" "Pays for goods and services." {
      tags "Person,External"
      url "https://example.com/customer"
      properties {
        "segment" "retail"
      }
    }
    agent = person "Support Agent" "Investigates failed and disputed payments." {
      tags "Person,Staff"
    }
    analyst = person "Fraud Analyst" "Reviews suspicious transactions." {
      tags "Person,Staff"
    }
    payments = softwareSystem "Payments" "Collects money." {
      tags "Software System"
      web = container "Web App" "Customer checkout UI." "Django" {
        tags "Container,Frontend"
      }
      mobile = container "Mobile App" "Checkout and payment history on phones." "React Native" {
        tags "Container,Mobile"
      }
      backoffice = container "Back Office" "Payment search, refunds and disputes." "React" {
        tags "Container,Frontend"
      }
      api = container "API" "Checkout API." "FastAPI" {
        tags "Container,Critical"
        controller = component "Checkout Controller" "Validates requests and exposes the checkout endpoints." "FastAPI Router" {
          tags "Component"
        }
        checkout = component "Checkout" "Orchestrates a payment from cart to confirmation." "Python" {
          tags "Component"
        }
        risk_client = component "Risk Client" "Asks the fraud engine to score a payment." "gRPC" {
          tags "Component"
        }
        psp_adapter = component "PSP Adapter" "Talks to the payment provider and maps its errors." "Python" {
          tags "Component"
        }
        ledger_repo = component "Ledger Repository" "Persists payments and double-entry ledger records." "SQLAlchemy" {
          tags "Component"
        }
        events = component "Event Publisher" "Publishes payment lifecycle events." "Python" {
          tags "Component"
        }
      }
      fraud = container "Fraud Engine" "Scores payments in real time." "Python / scikit-learn" {
        tags "Container,Critical"
      }
      worker = container "Settlement Worker" "Settles captured payments and sends receipts." "Celery" {
        tags "Container,Worker"
      }
      broker = container "Message Broker" "Payment lifecycle events." "RabbitMQ" {
        tags "Container,Queue"
      }
      cache = container "Session Cache" "Idempotency keys and checkout sessions." "Redis" {
        tags "Container,Storage"
      }
      database = container "Database" "Payments and ledger." "PostgreSQL" {
        tags "Container,Storage"
      }
    }
    psp = softwareSystem "Payment Provider" "Card acquiring and 3-D Secure." {
      tags "Software System,External"
    }
    bank = softwareSystem "Banking Network" "Settles funds with issuing banks." {
      tags "Software System,External"
    }
    identity = softwareSystem "Identity Provider" "Authenticates customers and staff." {
      tags "Software System,External"
    }
    notifier = softwareSystem "Notification Service" "Delivers e-mail and SMS receipts." {
      tags "Software System,External"
    }
    customer -> web "Uses" "HTTPS" {
      tags "Relationship"
    }
    customer -> mobile "Uses" "HTTPS" {
      tags "Relationship"
    }
    agent -> backoffice "Looks up payments" "HTTPS" {
      tags "Relationship"
    }
    analyst -> backoffice "Reviews flagged payments" "HTTPS" {
      tags "Relationship"
    }
    web -> api "Calls" "JSON/HTTPS" {
      tags "Relationship"
    }
    mobile -> api "Calls" "JSON/HTTPS" {
      tags "Relationship"
    }
    backoffice -> api "Calls" "JSON/HTTPS" {
      tags "Relationship"
    }
    web -> identity "Signs customers in" "OIDC" {
      tags "Relationship"
    }
    backoffice -> identity "Signs staff in" "OIDC" {
      tags "Relationship"
    }
    api -> cache "Reads and writes sessions" "Redis protocol" {
      tags "Relationship"
    }
    api -> fraud "Scores payments" "gRPC" {
      tags "Relationship"
    }
    api -> psp "Authorises and captures" "HTTPS" {
      tags "Relationship,Critical"
    }
    api -> broker "Publishes events" "AMQP" {
      tags "Relationship,Async"
    }
    api -> database "Reads from and writes to" "SQL" {
      tags "Relationship,Persistent"
    }
    fraud -> database "Reads payment history" "SQL" {
      tags "Relationship"
    }
    broker -> worker "Delivers events" "AMQP" {
      tags "Relationship,Async"
    }
    worker -> database "Updates settlements" "SQL" {
      tags "Relationship,Persistent"
    }
    worker -> bank "Submits settlement files" "SFTP" {
      tags "Relationship"
    }
    worker -> notifier "Sends receipts" "HTTPS" {
      tags "Relationship,Async"
    }
    psp -> bank "Routes card transactions" "ISO 8583" {
      tags "Relationship"
    }
    web -> controller "Submits checkout" "JSON/HTTPS" {
      tags "Relationship"
    }
    mobile -> controller "Submits checkout" "JSON/HTTPS" {
      tags "Relationship"
    }
    backoffice -> controller "Requests refunds" "JSON/HTTPS" {
      tags "Relationship"
    }
    controller -> checkout "Starts payment" {
      tags "Relationship"
    }
    checkout -> risk_client "Requests risk score" {
      tags "Relationship"
    }
    checkout -> psp_adapter "Charges the card" {
      tags "Relationship"
    }
    checkout -> ledger_repo "Records payment" {
      tags "Relationship"
    }
    checkout -> events "Emits payment events" {
      tags "Relationship"
    }
    risk_client -> fraud "Scores payments" "gRPC" {
      tags "Relationship"
    }
    psp_adapter -> psp "Authorises and captures" "HTTPS" {
      tags "Relationship,Critical"
    }
    ledger_repo -> database "Reads from and writes to" "SQL" {
      tags "Relationship,Persistent"
    }
    events -> broker "Publishes events" "AMQP" {
      tags "Relationship,Async"
    }
  }
  views {
    systemLandscape "landscape" {
      include *
      autoLayout lr
    }
    systemContext payments "context" {
      include *
      exclude relationship.tag==Deprecated
      autoLayout lr
    }
    container payments "containers" {
      include *
      include element.tag==Storage
      animation {
        customer web mobile
        api cache fraud
        database broker worker
      }
      autoLayout tb
    }
    component api "components" {
      include *
      autoLayout tb
    }
    dynamic payments "checkout-flow" {
      customer -> web "Starts checkout" "HTTPS"
      web -> api "Submits checkout" "JSON/HTTPS"
      api -> fraud "Scores the payment" "gRPC"
      api -> psp "Authorises the card" "HTTPS"
      api -> database "Persists checkout" "SQL"
      api -> broker "Publishes payment captured" "AMQP"
      autoLayout lr
    }
    dynamic payments "settlement-flow" {
      broker -> worker "Delivers payment captured" "AMQP"
      worker -> database "Marks payment as settled" "SQL"
      worker -> bank "Submits settlement file" "SFTP"
      worker -> notifier "Sends receipt" "HTTPS"
      autoLayout lr
    }
    styles {
      element "Person" {
        shape Person
        background #08427b
        color #ffffff
        fontSize 22
      }
      element "Software System" {
        background #1168bd
        color #ffffff
      }
      element "Container" {
        background #438dd5
        color #ffffff
      }
      element "Component" {
        background #85bbf0
        color #000000
      }
      element "Database" {
        shape Cylinder
      }
      element "Queue" {
        shape Pipe
      }
      element "External" {
        background #999999
        color #ffffff
      }
      element "Boundary" {
        stroke #444444
        strokeWidth 1
        border Dashed
      }
      element "Person" {
        shape Person
      }
      element "Staff" {
        background #455a64
        color #ffffff
      }
      element "External" {
        background #999999
        color #ffffff
        border Dashed
      }
      element "Critical" {
        background #ffcc00
        color #111111
      }
      element "Frontend" {
        shape WebBrowser
      }
      element "Mobile" {
        shape MobileDevicePortrait
      }
      element "Storage" {
        shape Cylinder
      }
      element "Queue" {
        shape Pipe
      }
      element "Worker" {
        shape Hexagon
      }
      relationship "Persistent" {
        thickness 4
      }
      relationship "Async" {
        style dashed
      }
      relationship "Critical" {
        color #c62828
        thickness 3
      }
    }
  }
}

Definitions

StructurizrModelSchema

The workspace model inventory.

Ownership is encoded structurally: containers belong to systems, components belong to containers, and deployment content belongs to environments/nodes.

Properties

Field Type Description
relationships array[StructurizrRelationshipSchema] Relationships
deployment StructurizrDeploymentSchema
people array[StructurizrPersonSchema] People
software_systems array[StructurizrSoftwareSystemSchema] Software Systems

StructurizrPersonSchema

A root person in the workspace model.

Properties

Field Type Description
description string | null Description
id(required) string Id
name(required) string Name
properties object Properties
style object | null Style
tags array[string] Tags
url string | null Url

StructurizrSoftwareSystemSchema

A root software system and its explicitly owned containers.

Properties

Field Type Description
containers array[StructurizrContainerSchema] Containers
description string | null Description
id(required) string Id
name(required) string Name
properties object Properties
style object | null Style
tags array[string] Tags
url string | null Url

StructurizrContainerSchema

A container owned by its containing software system.

Properties

Field Type Description
components array[StructurizrComponentSchema] Components
description string | null Description
id(required) string Id
name(required) string Name
properties object Properties
style object | null Style
tags array[string] Tags
technology string | null Technology
url string | null Url

StructurizrComponentSchema

A component owned by its containing container.

Properties

Field Type Description
description string | null Description
id(required) string Id
name(required) string Name
properties object Properties
style object | null Style
tags array[string] Tags
technology string | null Technology
url string | null Url

StructurizrRelationshipSchema

A model-level relationship using c4-diagrams from/to spelling.

Properties

Field Type Description
description string | null Description
from(required) string From
properties object Properties
style object | null Style
tags array[string] Tags
technology string | null Technology
to(required) string To
url string | null Url

StructurizrDeploymentSchema

Deployment environments and their explicitly owned node trees.

Properties

Field Type Description
environments array[StructurizrDeploymentEnvironmentSchema] Environments

StructurizrDeploymentEnvironmentSchema

A named deployment environment containing its root deployment nodes.

Properties

Field Type Description
deployment_nodes array[StructurizrDeploymentNodeSchema] Deployment Nodes
name(required) string Name

StructurizrDeploymentNodeSchema

A deployment node with explicitly nested nodes and instances.

Properties

Field Type Description
container_instances array[StructurizrContainerInstanceSchema] Container Instances
deployment_nodes array[StructurizrDeploymentNodeSchema] Deployment Nodes
description string | null Description
id(required) string Id
infrastructure_nodes array[StructurizrInfrastructureNodeSchema] Infrastructure Nodes
name(required) string Name
properties object Properties
software_system_instances array[StructurizrSoftwareSystemInstanceSchema] Software System Instances
style object | null Style
tags array[string] Tags
technology string | null Technology
url string | null Url

StructurizrInfrastructureNodeSchema

Infrastructure nested below a deployment or infrastructure node.

Properties

Field Type Description
deployment_nodes array[StructurizrDeploymentNodeSchema] Deployment Nodes
description string | null Description
id(required) string Id
infrastructure_nodes array[StructurizrInfrastructureNodeSchema] Infrastructure Nodes
name(required) string Name
properties object Properties
style object | null Style
tags array[string] Tags
technology string | null Technology
url string | null Url

StructurizrSoftwareSystemInstanceSchema

A software-system instance and the model element it represents.

Properties

Field Type Description
description string | null Description
id(required) string Id
properties object | null Properties
software_system(required) string Software System
style object | null Style
tags array[string] Tags
url string | null Url

StructurizrContainerInstanceSchema

A container instance and the model element it represents.

Properties

Field Type Description
container(required) string Container
description string | null Description
id(required) string Id
properties object | null Properties
style object | null Style
tags array[string] Tags
url string | null Url

StructurizrViewsSchema

Declared Structurizr views in authoring order.

Properties

Field Type Description
items array[
 StructurizrSystemLandscapeViewSchema
 |StructurizrSystemContextViewSchema
 |StructurizrContainerViewSchema
 |StructurizrComponentViewSchema
 |StructurizrDynamicViewSchema
 |StructurizrDeploymentViewSchema
]
Items

StructurizrSystemLandscapeViewSchema

Properties

Field Type Description
type(required) string Type Must be exactly system_landscape.
title string | null Title
animation array Animation
auto_layout StructurizrAutoLayoutSchema
description string | null Description
exclude array[StructurizrSelectorSchema] Exclude
include array[StructurizrSelectorSchema] Include
key string | null Key
properties object Properties
tags array[string] Tags

StructurizrSystemContextViewSchema

Properties

Field Type Description
type(required) string Type Must be exactly system_context.
title string | null Title
animation array Animation
auto_layout StructurizrAutoLayoutSchema
description string | null Description
exclude array[StructurizrSelectorSchema] Exclude
include array[StructurizrSelectorSchema] Include
key string | null Key
properties object Properties
scope(required) string Scope
tags array[string] Tags

StructurizrContainerViewSchema

Properties

Field Type Description
type(required) string Type Must be exactly container.
title string | null Title
animation array Animation
auto_layout StructurizrAutoLayoutSchema
description string | null Description
exclude array[StructurizrSelectorSchema] Exclude
include array[StructurizrSelectorSchema] Include
key string | null Key
properties object Properties
scope(required) string Scope
tags array[string] Tags

StructurizrComponentViewSchema

Properties

Field Type Description
type(required) string Type Must be exactly component.
title string | null Title
animation array Animation
auto_layout StructurizrAutoLayoutSchema
description string | null Description
exclude array[StructurizrSelectorSchema] Exclude
include array[StructurizrSelectorSchema] Include
key string | null Key
properties object Properties
scope(required) string Scope
tags array[string] Tags

StructurizrDynamicViewSchema

Properties

Field Type Description
type(required) string Type Must be exactly dynamic.
title string | null Title
animation array Animation
auto_layout StructurizrAutoLayoutSchema
description string | null Description
exclude array[StructurizrSelectorSchema] Exclude
include array[StructurizrSelectorSchema] Include
key string | null Key
properties object Properties
scope string | null Scope
steps array[StructurizrDynamicStepSchema] Steps
tags array[string] Tags

StructurizrDeploymentViewSchema

Properties

Field Type Description
type(required) string Type Must be exactly deployment.
title string | null Title
animation array Animation
auto_layout StructurizrAutoLayoutSchema
description string | null Description
environment(required) string Environment
exclude array[StructurizrSelectorSchema] Exclude
include array[StructurizrSelectorSchema] Include
key string | null Key
properties object Properties
scope string | null Scope
tags array[string] Tags

StructurizrDynamicStepSchema

A view-local ordered interaction; it is not a model relationship.

Properties

Field Type Description
description string | null Description
from(required) string From
properties object Properties
style object | null Style
tags array[string] Tags
technology string | null Technology
to(required) string To
url string | null Url

StructurizrSelectorSchema

A named element selector, to be resolved by workspace conversion.

Properties

Field Type Description
id(required) string Id

StructurizrAutoLayoutSchema

Structurizr automatic-layout settings.

Properties

Field Type Description
implementation string | null Implementation
node_separation integer | null Node Separation
rank_direction enum[TopBottom | BottomTop | LeftRight | RightLeft] Rank Direction Default: LeftRight.
rank_separation integer | null Rank Separation

StructurizrStylesSchema

Workspace style declarations.

Properties

Field Type Description
elements array[StructurizrStyleSchema] Elements
relationships array[StructurizrStyleSchema] Relationships

StructurizrStyleSchema

A style declaration for an element tag or relationship tag.

Properties

Field Type Description
properties object Properties
target(required) string Target

StructurizrRenderOptionsSchema

Reserved Structurizr renderer options for workspace JSON.

Properties

Field Type Description
auto_layout StructurizrAutoLayoutSchema
style_preset enum[classic | new-c4-style] | null Style Preset