Skip to content

DSL Decompilation from JSON #349

Closed Answered by simonbrowndotje
tulrichtrimble asked this question in Q&A
Discussion options

You must be logged in to vote

If there is a way to add content through Java while retaining the ability for humans to tweak the DSL, I am all ears!

When generating your workspace from Backstage, including an element property named structurizr.dsl.identifier, and then saving to a JSON file will allow that element to be extended via the DSL. There will be a post on the Patreon about this in the next few weeks, but there's an example in the tests that illustrates this -> https://github.com/structurizr/java/blob/master/structurizr-dsl/src/test/resources/dsl/extend/extend-workspace-from-json-url.dsl#L4

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tulrichtrimble
Comment options

Answer selected by tulrichtrimble
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