Commit 68d0a3d
[KOTLIN-SPRING] Add oneOf sealed interface support with discriminator
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: brohacz <brohacz@users.noreply.github.com>
Co-Authored-By: KZwolski <KZwolski@users.noreply.github.com>1 parent e1513f7 commit 68d0a3d
132 files changed
Lines changed: 2988 additions & 225 deletions
File tree
- .github/workflows
- bin/configs
- docs/generators
- modules/openapi-generator/src
- main
- java/org/openapitools/codegen/languages
- resources/kotlin-spring
- test
- java/org/openapitools/codegen/kotlin/spring
- resources
- 3_0/kotlin
- 3_1
- samples
- client/petstore
- kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models
- kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models
- server
- others
- kotlin-server
- polymorphism-and-discriminator-disabled-jackson-fix/src/main/kotlin/org/openapitools/server/models
- polymorphism-and-discriminator/src/main/kotlin/org/openapitools/server/models
- kotlin-springboot
- oneOf-discriminator-const
- .openapi-generator
- gradle/wrapper
- src/main/kotlin/org/openapitools
- api
- model
- oneOf-discriminator
- .openapi-generator
- gradle/wrapper
- src/main/kotlin/org/openapitools
- api
- model
- oneOf-enum-discriminator
- .openapi-generator
- gradle/wrapper
- src/main/kotlin/org/openapitools
- api
- configuration
- model
- petstore
- kotlin-spring-cloud/src/main/kotlin/org/openapitools/model
- kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model
- kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model
- kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model
- kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model
- kotlin-spring-default/src/main
- kotlin/org/openapitools/model
- resources
- kotlin-spring-sealed-interfaces/src/main/kotlin/org/openapitools/model
- kotlin-springboot-3-no-response-entity/src/main/kotlin/org/openapitools/model
- kotlin-springboot-3/src/main/kotlin/org/openapitools/model
- kotlin-springboot-4/src/main/kotlin/org/openapitools/model
- kotlin-springboot-additionalproperties/src/main/kotlin/org/openapitools/model
- kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model
- kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model
- kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model
- kotlin-springboot-integer-enum/src/main/kotlin/org/openapitools/model
- kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model
- kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/model
- kotlin-springboot-no-response-entity/src/main/kotlin/org/openapitools/model
- kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model
- kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model
- kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model
- kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model
- kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model
- kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model
- kotlin-springboot/src/main/kotlin/org/openapitools/model
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| 426 | + | |
426 | 427 | | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
430 | 448 | | |
431 | 449 | | |
432 | 450 | | |
| |||
Lines changed: 94 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | | - | |
| 205 | + | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| |||
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
213 | 218 | | |
214 | 219 | | |
215 | 220 | | |
| |||
1150 | 1155 | | |
1151 | 1156 | | |
1152 | 1157 | | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
1153 | 1246 | | |
1154 | 1247 | | |
1155 | 1248 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | | - | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
57 | | - | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
0 commit comments