Commit 1b55779
authored
[kotlin-spring][server] Feat: Return from controllers without ResponseEntity wrapper. (#22377)
* remove "async" and "responseWrapper" from template as these are not supported by kotlin-spring generator
* try to force pipelines rerun
* force pipelines rerun
* fix mustache to keep generated code identical
* Revert "fix mustache to keep generated code identical"
This reverts commit c573b43.
* Reapply "fix mustache to keep generated code identical"
This reverts commit 2c3b065.
* Add support for 'useResponseEntity' in kotlin-spring. Consolidate with the separate flag 'declarativeInterfaceWrapResponses' as these can now be controlled both by one flag. Default to true.
* fix status annotation and add compile-test samples
* satisfy samples-up-to-date check
* add unit tests covering both reactive and non-reactive
* fix template to avoid unnecessary empty line
* fix template to avoid unnecessary empty line
* put method params (if present) on separate lines to improve readability
* put method params (if present) on separate lines to improve readability; fix double spaces, spaces before comma, incorrect spaces
* fix test
* store PATHs as accesible strings in companion objects.
* fix missing import
* fix incorrect import
* fix fallback to nested placeholders.1 parent 3d6e9d5 commit 1b55779
File tree
202 files changed
+9390
-1271
lines changed- .github/workflows
- bin/configs
- docs/generators
- modules/openapi-generator/src
- main
- java/org/openapitools/codegen/languages
- resources/kotlin-spring
- libraries/spring-declarative-http-interface
- test/java/org/openapitools/codegen/kotlin
- spring
- samples/server/petstore
- kotlin-spring-cloud/src/main/kotlin/org/openapitools/api
- kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/api
- kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/api
- kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/api
- kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/api
- kotlin-spring-default/src/main/kotlin/org/openapitools/api
- kotlin-springboot-3-no-response-entity
- .openapi-generator
- gradle/wrapper
- src
- main
- kotlin/org/openapitools
- api
- model
- resources
- test/kotlin/org/openapitools/api
- kotlin-springboot-3/src/main/kotlin/org/openapitools/api
- kotlin-springboot-additionalproperties/src/main/kotlin/org/openapitools/api
- kotlin-springboot-bigdecimal-default/src/main/kotlin/org/openapitools/api
- kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api
- kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api
- kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/api
- kotlin-springboot-integer-enum/src/main/kotlin/org/openapitools/api
- kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api
- kotlin-springboot-multipart-request-model/src/main/kotlin/org/openapitools/api
- kotlin-springboot-no-response-entity-delegate
- .openapi-generator
- gradle/wrapper
- src/main
- kotlin/org/openapitools
- api
- model
- resources
- kotlin-springboot-no-response-entity
- .openapi-generator
- gradle/wrapper
- src
- main
- kotlin/org/openapitools
- api
- model
- resources
- test/kotlin/org/openapitools/api
- kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api
- kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api
- kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api
- kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/api
- kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api
- kotlin-springboot-springfox/src/main/kotlin/org/openapitools
- api
- kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/api
- kotlin-springboot/src/main/kotlin/org/openapitools/api
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
202 files changed
+9390
-1271
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 15 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments