Commit 843cec4
[KOTLIN-SPRING] Add oneOf sealed interface support with discriminator
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: brohacz <brohacz@users.noreply.github.com>
Co-Authored-By: KZwolski <KZwolski@users.noreply.github.com>1 parent 3971b4f commit 843cec4
132 files changed
Lines changed: 2996 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 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
428 | 446 | | |
429 | 447 | | |
430 | 448 | | |
| |||
Lines changed: 87 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | | - | |
| 228 | + | |
| 229 | + | |
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
| |||
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
236 | 241 | | |
237 | 242 | | |
238 | 243 | | |
| |||
1328 | 1333 | | |
1329 | 1334 | | |
1330 | 1335 | | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
1331 | 1349 | | |
1332 | 1350 | | |
1333 | 1351 | | |
1334 | 1352 | | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
1335 | 1380 | | |
1336 | 1381 | | |
1337 | 1382 | | |
| |||
1375 | 1420 | | |
1376 | 1421 | | |
1377 | 1422 | | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
1378 | 1464 | | |
1379 | 1465 | | |
1380 | 1466 | | |
| |||
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