Create json from dsl #53
-
QuestionHi Simon, Short question: Thanks! EDIT: The workspace json I get looks like this {
"id": 1,
"name": "Name",
"description": "Description",
"revision": 10,
"lastModifiedDate": "2023-07-14T08:49:07Z",
"properties": {
"structurizr.dsl": "IWNvbnN0YW..."
},
"model": {},
"views": {
"configuration": {
"branding": {},
"styles": {},
"terminology": {}
}
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I don't really understand what you're asking I'm afraid. |
Beta Was this translation helpful? Give feedback.
-
This shouldn't be the case. Which editor are you referring to? |
Beta Was this translation helpful? Give feedback.
-
I upload a json object that looks like {
"id": 1,
"name": "Name",
"description": "Description",
"properties": {
"structurizr.dsl": "IWNvbnN0YW..."
},
} Which means: I only PUT the workspace dsl (as base64). I hope this makes it clear. |
Beta Was this translation helpful? Give feedback.
-
That explains it ... you're pushing a JSON file without any views defined, and loading the workspace via the editor will be creating a default set for you. Why can't you push the DSL file? Edit: If you're not doing so, I'd recommend using the Structurizr CLI to upload your workspace by pushing the DSL file -> https://github.com/structurizr/cli/blob/master/docs/push.md |
Beta Was this translation helpful? Give feedback.
That explains it ... you're pushing a JSON file without any views defined, and loading the workspace via the editor will be creating a default set for you. Why can't you push the DSL file?
Edit: If you're not doing so, I'd recommend using the Structurizr CLI to upload your workspace by pushing the DSL file -> https://github.com/structurizr/cli/blob/master/docs/push.md