structurizr / cli

A command line utility for Structurizr.
https://docs.structurizr.com/cli
Apache License 2.0
492 stars 75 forks source link

Validation fails, but diagram works - Uexpected tokens (expected: workspace) at line 1 #148

Closed TGeb-EV closed 10 months ago

TGeb-EV commented 10 months ago

Description

I have included a file with a softwareSystem definition. The diagram shows up using the docker container but the validation fails with "Unexpected tokens (expected: workspace) at line 1 .... ":

ACCESS = softwareSystem "COMPANY.Access" "ACCESS" { tags "COMPANY.ACCESS" BLAXML = container "BLAXML Gateway" "BLAXML" }

Steps to reproduce

Include the example from the description as include in the workspace dsl.

Screenshot

No response

Code sample

ACCESS = softwareSystem "COMPANY.Access" "ACCESS" {
    tags "COMPANY.ACCESS"
    BLAXML = container "BLAXML Gateway" "BLAXML"
}

Configuration

No response

Severity

Minor

Priority

Low

Resolution

I have no budget and there's no rush, please fix this for free

More information

No response

TGeb-EV commented 10 months ago

It works, if i name the file extension .inc instead of .dsl

TGeb-EV commented 10 months ago

I had to call the validation another way.