Closed lukas-lacko closed 2 months ago
Hi @lukas-lacko,
yeah, we found out that there could be many different characters used across objects which may cause issues. You may use name resolvers
(see readme) to manually strip the name of unwanted characters. I'm also expecting to adjust the model generator to strip more unwanted characters so the custom name resolver might not be needed in future releases.
This is now fixed by default if no custom configuration is used.
Brief bug description
What went wrong?
When running the model generator while having content type with brackets in its name, the error gets thrown:
Repro steps
SyntaxError: '=' expected. (9:18) 7 | Codename: buggybrackets 8 | /
...
throw Error(
Failed to process content type '${type.codename}' (${type.name})
); ^Error: Failed to process content type 'buggybrackets' (Buggy[brackets])
Expected behavior
The error does not get thrown and the content type with brackets gets generated.
Test environment