Commit a2fd144
Bring Kotlin client code up-to-speed with changes (#23188)
* Convert static constants to CAPITALS.
* Bring `responseBody` up-to-speed with regards to response nullability.
* Keep previous constants so not to break existing code.
* Generate samples code.
* Apply suggestion from @cubic-dev-ai[bot]
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Regenerate sample code.
* Reorder statics, fix values of `ACCEPT` and `AUTHORIZATION` constants.
* Regenerate sample code.
* Add deprecation constant.
* Regenerate sample code.
* Remove unnecessary annotation.
* Regenerate samples code.
---------
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>1 parent a04b9a5 commit a2fd144
106 files changed
Lines changed: 2824 additions & 1127 deletions
File tree
- modules/openapi-generator/src/main/resources/kotlin-client/libraries
- jvm-okhttp
- infrastructure
- jvm-retrofit2/infrastructure
- jvm-vertx/infrastructure
- samples/client
- echo_api
- kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/infrastructure
- others
- kotlin-integer-enum/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-jvm-okhttp-path-comments/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-oneOf-anyOf-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-oneOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure
- petstore
- kotlin-allOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-allOf-discriminator/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-array-integer-enum/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-array-simple-string-jvm-okhttp4/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-default-values-jvm-retrofit2/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-enum-default-value/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-explicit/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-gson/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-jackson/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-json-request-string/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-modelMutable/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-nonpublic/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-nullable/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-retrofit2/src/main/kotlin/org/openapitools/client/infrastructure
- kotlin-string/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-threetenbp/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin-uppercase-enum/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
- kotlin/src/main/kotlin/org/openapitools/client
- apis
- infrastructure
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
Lines changed: 99 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
75 | 135 | | |
76 | 136 | | |
77 | 137 | | |
78 | 138 | | |
79 | 139 | | |
80 | 140 | | |
81 | | - | |
82 | 141 | | |
83 | 142 | | |
84 | 143 | | |
| |||
98 | 157 | | |
99 | 158 | | |
100 | 159 | | |
101 | | - | |
| 160 | + | |
102 | 161 | | |
103 | 162 | | |
104 | 163 | | |
| |||
137 | 196 | | |
138 | 197 | | |
139 | 198 | | |
140 | | - | |
| 199 | + | |
141 | 200 | | |
142 | 201 | | |
143 | 202 | | |
| |||
167 | 226 | | |
168 | 227 | | |
169 | 228 | | |
170 | | - | |
| 229 | + | |
171 | 230 | | |
172 | 231 | | |
173 | 232 | | |
| |||
191 | 250 | | |
192 | 251 | | |
193 | 252 | | |
194 | | - | |
| 253 | + | |
195 | 254 | | |
196 | 255 | | |
197 | 256 | | |
| |||
214 | 273 | | |
215 | 274 | | |
216 | 275 | | |
217 | | - | |
| 276 | + | |
218 | 277 | | |
219 | 278 | | |
220 | 279 | | |
| |||
236 | 295 | | |
237 | 296 | | |
238 | 297 | | |
239 | | - | |
| 298 | + | |
240 | 299 | | |
241 | 300 | | |
242 | 301 | | |
| |||
261 | 320 | | |
262 | 321 | | |
263 | 322 | | |
264 | | - | |
| 323 | + | |
265 | 324 | | |
266 | | - | |
267 | | - | |
268 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
269 | 328 | | |
270 | 329 | | |
271 | 330 | | |
272 | 331 | | |
273 | 332 | | |
274 | 333 | | |
275 | 334 | | |
276 | | - | |
| 335 | + | |
277 | 336 | | |
278 | | - | |
279 | | - | |
280 | | - | |
| 337 | + | |
| 338 | + | |
281 | 339 | | |
282 | 340 | | |
283 | 341 | | |
| |||
352 | 410 | | |
353 | 411 | | |
354 | 412 | | |
355 | | - | |
356 | | - | |
| 413 | + | |
| 414 | + | |
357 | 415 | | |
358 | 416 | | |
359 | 417 | | |
| |||
394 | 452 | | |
395 | 453 | | |
396 | 454 | | |
397 | | - | |
| 455 | + | |
398 | 456 | | |
399 | 457 | | |
400 | | - | |
| 458 | + | |
401 | 459 | | |
402 | 460 | | |
403 | 461 | | |
404 | 462 | | |
405 | 463 | | |
406 | | - | |
| 464 | + | |
407 | 465 | | |
408 | | - | |
| 466 | + | |
409 | 467 | | |
410 | 468 | | |
411 | 469 | | |
412 | 470 | | |
413 | 471 | | |
414 | | - | |
| 472 | + | |
415 | 473 | | |
416 | | - | |
| 474 | + | |
417 | 475 | | |
418 | 476 | | |
419 | 477 | | |
| |||
440 | 498 | | |
441 | 499 | | |
442 | 500 | | |
443 | | - | |
444 | | - | |
| 501 | + | |
| 502 | + | |
445 | 503 | | |
446 | | - | |
447 | | - | |
| 504 | + | |
| 505 | + | |
448 | 506 | | |
449 | 507 | | |
450 | 508 | | |
451 | | - | |
452 | | - | |
| 509 | + | |
| 510 | + | |
453 | 511 | | |
454 | 512 | | |
455 | | - | |
| 513 | + | |
456 | 514 | | |
457 | | - | |
| 515 | + | |
458 | 516 | | |
459 | 517 | | |
460 | 518 | | |
| |||
498 | 556 | | |
499 | 557 | | |
500 | 558 | | |
501 | | - | |
| 559 | + | |
502 | 560 | | |
503 | 561 | | |
504 | 562 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
380 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
381 | 385 | | |
382 | 386 | | |
383 | 387 | | |
384 | | - | |
| 388 | + | |
385 | 389 | | |
386 | 390 | | |
387 | 391 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | | - | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/QueryApi.kt
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments