Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

How to mix json- and dsl-workspaces #328

Closed Answered by simonbrowndotje
mathias-muench asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the DSL !ref keyword in conjunction with the element's "canonical name"; for example:

workspace extends https://raw.githubusercontent.com/structurizr/examples/main/json/getting-started/workspace.json {

    model {
        world = softwareSystem "World"
        
        ss = !ref "SoftwareSystem://Software System" {
            this -> world "analyzes"
        }
    }
    
    views {
        systemContext world {
            include *
            autolayout
        }
    }

}

At the moment, the workspace extension feature doesn't load any of the structurizr.dsl.identifier names, but I don't see why it couldn't be modified to do that (I've contemplated this a couple of times …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mathias-muench
Comment options

@simonbrowndotje
Comment options

Answer selected by mathias-muench
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #327 on August 24, 2023 19:19.