From 26e8f24449b484327821b1de502f93f007512fd5 Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Sat, 27 Sep 2025 11:02:46 +1000 Subject: [PATCH] Replace deprecated `!ref` with `!element` See https://github.com/structurizr/examples/issues/19 From https://docs.structurizr.com/dsl/language#ref > The `!ref` keyword is deprecated - please use `!element` or > `!relationship` instead. Since these examples were referencing elements, and not relationships, `!relationship` is the appropriate keyword. These two `workspace.dsl` files now pass validation with the current Structurizr CLI (version 2025.05.28). --- dsl/big-bank-plc/internet-banking-system/workspace.dsl | 2 +- dsl/big-bank-plc/system-landscape/workspace.dsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dsl/big-bank-plc/internet-banking-system/workspace.dsl b/dsl/big-bank-plc/internet-banking-system/workspace.dsl index 2dde31f..6bd35e3 100644 --- a/dsl/big-bank-plc/internet-banking-system/workspace.dsl +++ b/dsl/big-bank-plc/internet-banking-system/workspace.dsl @@ -5,7 +5,7 @@ workspace extends ../model.dsl { description "The software architecture of the Big Bank plc Internet Banking System." model { - !ref internetbankingsystem { + !element internetbankingsystem { singlePageApplication = container "Single-Page Application" "Provides all of the Internet banking functionality to customers via their web browser." "JavaScript and Angular" "Web Browser" mobileApp = container "Mobile App" "Provides a limited subset of the Internet banking functionality to customers via their mobile device." "Xamarin" "Mobile App" webApplication = container "Web Application" "Delivers the static content and the Internet banking single page application." "Java and Spring MVC" diff --git a/dsl/big-bank-plc/system-landscape/workspace.dsl b/dsl/big-bank-plc/system-landscape/workspace.dsl index 275a8ac..61c5a41 100644 --- a/dsl/big-bank-plc/system-landscape/workspace.dsl +++ b/dsl/big-bank-plc/system-landscape/workspace.dsl @@ -5,7 +5,7 @@ workspace extends ../model.dsl { description "The system landscape for Big Bank plc." model { - !ref internetbankingsystem { + !element internetbankingsystem { url https://structurizr.com/share/36141/diagrams#SystemContext } }