Commit ab136df
Kotlin wraps a property name that is not a valid identifier in back-ticks,
for example `2ndField` for a schema property named "2nd_field". The model
templates rendered that name with a double-brace Mustache tag, which HTML
escapes it, so the generated KDoc read:
@PARAM `2ndField` An optional property ...
Switch the two affected templates to a triple-brace tag, matching what
kotlin-client, kotlin-server, ktor2 and jaxrs-spec already do.
No committed sample changes, because no existing kotlin-spring or
kotlin-vertx sample has a property name that needs back-ticks. The new
test uses param-json-property.yaml, which does.
Claude-Session: https://claude.ai/code/session_01VBn7VWUxZL6mTUbg21xNjm
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 11221eb commit ab136df
3 files changed
Lines changed: 17 additions & 3 deletions
File tree
- modules/openapi-generator/src
- main/resources
- kotlin-spring
- kotlin-vertx-server
- test/java/org/openapitools/codegen/kotlin/spring
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7797 | 7797 | | |
7798 | 7798 | | |
7799 | 7799 | | |
| 7800 | + | |
| 7801 | + | |
| 7802 | + | |
| 7803 | + | |
| 7804 | + | |
| 7805 | + | |
| 7806 | + | |
| 7807 | + | |
| 7808 | + | |
| 7809 | + | |
| 7810 | + | |
| 7811 | + | |
| 7812 | + | |
| 7813 | + | |
7800 | 7814 | | |
7801 | 7815 | | |
7802 | 7816 | | |
| |||
0 commit comments