Commit 4eba061
[POWERSHELL] test: assert every baseName emission site is single-quoted
Extends the regression test to cover every place model_simple.mustache
embeds a user-supplied property name: the Initialize- hash literal, the
ConvertFrom-…JsonTo… hash literal, the $AllProperties allow-list, the
.Properties[…] indexer, and the -match presence check. All five must be
single-quoted so PowerShell preserves `$` literally.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 66e8a42 commit 4eba061
1 file changed
Lines changed: 19 additions & 5 deletions
File tree
- modules/openapi-generator/src/test/java/org/openapitools/codegen/powershell
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
81 | 91 | | |
82 | | - | |
| 92 | + | |
83 | 93 | | |
84 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
85 | 99 | | |
86 | 100 | | |
0 commit comments