Commit 2d5037a
committed
fix(cli): strip {{enums}} placeholder in legacy CommandBox generator template
The legacy CommandBox-module generator (cli/src/models/TemplateService.cfc)
substituted {{belongsToRelationships}}, {{hasManyRelationships}},
{{hasOneRelationships}}, and {{validations}} but had no branch for the
{{enums}} placeholder carried by its model template. box wheels generate
model therefore leaked a literal {{enums}} into the generated config() body
as invalid CFML. This legacy path has no enum codegen (unlike the LuCLI
generator at cli/lucli/services/CodeGen.cfc), so the placeholder is now
stripped unconditionally, mirroring the no-validations fallback.
Adds a regression spec under cli/lucli/tests/specs/services/ that exercises
the legacy TemplateService.processTemplate via makePublic and asserts the
{{enums}} placeholder never survives into generated output.
Refs #3180
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>1 parent c94be05 commit 2d5037a
3 files changed
Lines changed: 59 additions & 1 deletion
File tree
- changelog.d
- cli
- lucli/tests/specs/services
- src/models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
134 | 141 | | |
135 | 142 | | |
136 | 143 | | |
| |||
0 commit comments