Commit 1419ad0
authored
[KOTLIN-SPRING] - add support for 'openApiNullable' - jackson nullable library to handle non-required AND nullable: true properties (#23804)
* feat(kotlin): add support for OpenAPI Jackson Nullable library to handle optional and nullable properties
* feat(kotlin): add support for OpenAPI Jackson Nullable library to handle optional and nullable properties
* add more tests for prefix/suffix
* improve springBootApplication.mustache structure
* regenerate samples
* fix test
* update documentation
* fix jackson-annotations import package. regenerate samples
* refactor import mappings for Jackson 3.x support and improve clarity1 parent a070a6a commit 1419ad0
270 files changed
Lines changed: 2601 additions & 72 deletions
File tree
- bin/configs
- docs/generators
- modules/openapi-generator/src
- main
- java/org/openapitools/codegen
- languages
- resources/kotlin-spring
- libraries
- spring-boot
- spring-cloud
- spring-declarative-http-interface
- test
- java/org/openapitools/codegen
- java
- spring
- kotlin/spring
- resources/3_0
- kotlin
- spring
- samples/server
- others/kotlin-springboot
- oneOf-discriminator-const
- oneOf-discriminator
- src/main/kotlin/org/openapitools/model
- oneOf-enum-discriminator
- 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
- 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-bigdecimal-default
- 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-multipart-request-model
- 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-paged-model
- 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-sort-validation
- .openapi-generator
- src
- main/kotlin/org/openapitools
- api
- model
- test/kotlin/org/openapitools/api
- 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
- springboot-sort-validation
- .openapi-generator
- src/main
- java/org/openapitools
- api
- model
- resources
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 | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
Lines changed: 51 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
293 | | - | |
| 294 | + | |
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
317 | 324 | | |
318 | 325 | | |
319 | 326 | | |
| |||
543 | 550 | | |
544 | 551 | | |
545 | 552 | | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
550 | 561 | | |
551 | 562 | | |
552 | 563 | | |
| |||
767 | 778 | | |
768 | 779 | | |
769 | 780 | | |
770 | | - | |
771 | | - | |
772 | | - | |
| 781 | + | |
| 782 | + | |
773 | 783 | | |
| 784 | + | |
774 | 785 | | |
775 | 786 | | |
776 | 787 | | |
| |||
1321 | 1332 | | |
1322 | 1333 | | |
1323 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
1324 | 1350 | | |
1325 | 1351 | | |
1326 | 1352 | | |
| |||
1475 | 1501 | | |
1476 | 1502 | | |
1477 | 1503 | | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
1478 | 1521 | | |
1479 | 1522 | | |
1480 | 1523 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
206 | 217 | | |
207 | 218 | | |
208 | 219 | | |
| |||
0 commit comments