dbml icon indicating copy to clipboard operation
dbml copied to clipboard

Space in Enum values

Open JurjenRoels opened this issue 3 years ago • 1 comments

Hello,

When having a space in a value of an enum, there is an error when building (dbdocs build).

Example

Enum Example { ThisIsAccepted This gives an error }

quoting with ' or " around the value does not work also.

The error:

✖ Failed: You have syntax error in database.dbml line 237 column 1. Expected "}", comment, valid name, or whitespace but "'" found.

Regards Jurjen

JurjenRoels avatar Apr 05 '22 12:04 JurjenRoels

Did you use the latest version of dbdocs CLI?

On the other hand, can you try again with the below DBML? It's still valid on our side.

Enum Example {
  ThisIsAccepted
  "This gives an error"
}

TeaNguyen avatar Apr 12 '22 18:04 TeaNguyen