Commit a98f1bd
committed
fix(kotlin): expose raw fields and use escaping lambdas in templates
- Add unescapedSummary, unescapedMessage, unescapedDefaultValue,
unescapedDescription fields to CodegenOperation, CodegenResponse,
CodegenParameter, CodegenProperty; populate in DefaultCodegen
- Add escapeInNormalString, escapeDollarInMultiline, escapeDollar,
removeLineBreak lambdas to AbstractKotlinCodegen/KotlinSpringServerCodegen
via addMustacheLambdas() using lambda. prefix
- Update ~50 Mustache templates across kotlin-spring, kotlin-client,
kotlin-server, kotlin-misk, kotlin-wiremock to apply lambdas at
point-of-use instead of relying on pre-escaped values
- Fix $ in PATH const vals, special chars in annotation strings,
and */ corruption in string literal defaults1 parent aa834b9 commit a98f1bd
54 files changed
Lines changed: 184 additions & 81 deletions
File tree
- modules/openapi-generator/src
- main
- java/org/openapitools/codegen
- languages
- resources
- kotlin-client
- libraries
- jvm-retrofit2
- jvm-vertx
- jvm-volley
- multiplatform
- kotlin-misk
- kotlin-server
- libraries
- javalin5
- javalin6
- jaxrs-spec
- ktor2
- kotlin-spring
- libraries/spring-declarative-http-interface
- kotlin-wiremock
- test/java/org/openapitools/codegen/kotlin/spring
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4315 | 4315 | | |
4316 | 4316 | | |
4317 | 4317 | | |
| 4318 | + | |
4318 | 4319 | | |
4319 | 4320 | | |
4320 | 4321 | | |
| |||
4738 | 4739 | | |
4739 | 4740 | | |
4740 | 4741 | | |
| 4742 | + | |
4741 | 4743 | | |
4742 | 4744 | | |
4743 | 4745 | | |
| |||
5092 | 5094 | | |
5093 | 5095 | | |
5094 | 5096 | | |
| 5097 | + | |
5095 | 5098 | | |
5096 | 5099 | | |
5097 | 5100 | | |
| |||
5641 | 5644 | | |
5642 | 5645 | | |
5643 | 5646 | | |
| 5647 | + | |
5644 | 5648 | | |
5645 | 5649 | | |
5646 | 5650 | | |
| |||
7543 | 7547 | | |
7544 | 7548 | | |
7545 | 7549 | | |
| 7550 | + | |
7546 | 7551 | | |
7547 | 7552 | | |
7548 | 7553 | | |
| |||
8089 | 8094 | | |
8090 | 8095 | | |
8091 | 8096 | | |
| 8097 | + | |
8092 | 8098 | | |
8093 | 8099 | | |
8094 | 8100 | | |
| |||
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1256 | 1256 | | |
1257 | 1257 | | |
1258 | 1258 | | |
1259 | | - | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1260 | 1273 | | |
1261 | 1274 | | |
1262 | 1275 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
957 | 957 | | |
958 | 958 | | |
959 | 959 | | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | 960 | | |
966 | 961 | | |
967 | 962 | | |
968 | 963 | | |
969 | 964 | | |
970 | | - | |
| 965 | + | |
| 966 | + | |
971 | 967 | | |
972 | 968 | | |
973 | 969 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments