Commit ed2aad6
authored
[JAVA: okhttp-gson, rest-assured, retrofit2] Don't generate Jackson import when serialization library is GSON (#18811)
* Partially revert "replace deprecated ISO8601Utils with StdDateFormat (#17052)"
This partially reverts commit 76560e3, namely anything
related to generators and samples using GSON instead of Jackson.
Changes to Jackson-only generation and generator-online regarding RFC3339DateFormat
are not being reverted.
* Test for default serialization library fallback
* Convert repetitive tests to parameterized test
* Add regression test for #18515
* [FEIGN] Only include <jackson-databind-version> property in pom.xml when required
* [RETROFIT2] Only include jackson-databind in gradle file when actually required
* [FEIGN] Don't include jackson dep's in sbt file when GSON is selected
* [FEIGN] Don't include jackson dep's in gradle file when GSON is selected
* DRY refactor JavaClientCodegen test code, increase readability
- use fluent assertions
- use helper method newTempFolder()
- use Java 9 static factory methods for maps
- don't declare variables that are only used once
- group declarations and usages
- use non-blocking java.nio.file API wherever possible
* Regenerate samples1 parent 051abb8 commit ed2aad6
44 files changed
Lines changed: 1307 additions & 2350 deletions
File tree
- modules
- openapi-generator-online/src/main/java/org/openapitools/codegen/online
- openapi-generator/src
- main/resources/Java
- libraries
- feign
- okhttp-gson
- rest-assured
- retrofit2
- test/java/org/openapitools/codegen/java
- samples/client
- echo_api/java
- feign-gson
- okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client
- okhttp-gson/src/main/java/org/openapitools/client
- others/java
- okhttp-gson-oneOf/src/main/java/org/openapitools/client
- okhttp-gson-streaming/src/main/java/org/openapitools/client
- petstore/java
- feign
- okhttp-gson-3.1/src/main/java/org/openapitools/client
- okhttp-gson-awsv4signature/src/main/java/org/openapitools/client
- okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client
- okhttp-gson-group-parameter/src/main/java/org/openapitools/client
- okhttp-gson-nullable-required/src/main/java/org/openapitools/client
- okhttp-gson-parcelableModel/src/main/java/org/openapitools/client
- okhttp-gson-swagger1/src/main/java/org/openapitools/client
- okhttp-gson-swagger2/src/main/java/org/openapitools/client
- okhttp-gson
- src/main/java/org/openapitools/client
- rest-assured-jackson
- rest-assured
- src/main/java/org/openapitools/client
- retrofit2-play26
- retrofit2rx2
- src/main/java/org/openapitools/client
- retrofit2rx3
- src/main/java/org/openapitools/client
- retrofit2
- src/main/java/org/openapitools/client
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 24 | | |
29 | | - | |
30 | 25 | | |
31 | | - | |
| 26 | + | |
| 27 | + | |
32 | 28 | | |
33 | 29 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 30 | | |
| 31 | + | |
39 | 32 | | |
40 | 33 | | |
41 | | - | |
| 34 | + | |
42 | 35 | | |
43 | 36 | | |
44 | 37 | | |
45 | 38 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 39 | + | |
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | | - | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 57 | | |
66 | 58 | | |
67 | 59 | | |
| |||
469 | 461 | | |
470 | 462 | | |
471 | 463 | | |
472 | | - | |
| 464 | + | |
473 | 465 | | |
474 | 466 | | |
475 | 467 | | |
| |||
479 | 471 | | |
480 | 472 | | |
481 | 473 | | |
482 | | - | |
| 474 | + | |
483 | 475 | | |
484 | 476 | | |
485 | 477 | | |
| |||
504 | 496 | | |
505 | 497 | | |
506 | 498 | | |
507 | | - | |
| 499 | + | |
508 | 500 | | |
509 | 501 | | |
510 | 502 | | |
| |||
523 | 515 | | |
524 | 516 | | |
525 | 517 | | |
526 | | - | |
| 518 | + | |
527 | 519 | | |
528 | 520 | | |
529 | 521 | | |
| |||
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| 123 | + | |
121 | 124 | | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
| 136 | + | |
| 137 | + | |
128 | 138 | | |
129 | 139 | | |
130 | 140 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
396 | 397 | | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
402 | 403 | | |
403 | | - | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
Lines changed: 6 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 60 | | |
68 | 61 | | |
69 | 62 | | |
| |||
466 | 459 | | |
467 | 460 | | |
468 | 461 | | |
469 | | - | |
| 462 | + | |
470 | 463 | | |
471 | 464 | | |
472 | 465 | | |
| |||
476 | 469 | | |
477 | 470 | | |
478 | 471 | | |
479 | | - | |
| 472 | + | |
480 | 473 | | |
481 | 474 | | |
482 | 475 | | |
| |||
501 | 494 | | |
502 | 495 | | |
503 | 496 | | |
504 | | - | |
| 497 | + | |
505 | 498 | | |
506 | 499 | | |
507 | 500 | | |
| |||
520 | 513 | | |
521 | 514 | | |
522 | 515 | | |
523 | | - | |
| 516 | + | |
524 | 517 | | |
525 | 518 | | |
526 | 519 | | |
| |||
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | 274 | | |
280 | 275 | | |
281 | 276 | | |
| |||
286 | 281 | | |
287 | 282 | | |
288 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
| |||
352 | 351 | | |
353 | 352 | | |
354 | 353 | | |
355 | | - | |
356 | 354 | | |
357 | 355 | | |
| 356 | + | |
358 | 357 | | |
359 | 358 | | |
360 | 359 | | |
| |||
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
| |||
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 54 | | |
63 | 55 | | |
64 | 56 | | |
| |||
370 | 362 | | |
371 | 363 | | |
372 | 364 | | |
373 | | - | |
| 365 | + | |
374 | 366 | | |
375 | 367 | | |
376 | 368 | | |
| |||
380 | 372 | | |
381 | 373 | | |
382 | 374 | | |
383 | | - | |
| 375 | + | |
384 | 376 | | |
385 | 377 | | |
386 | 378 | | |
| |||
406 | 398 | | |
407 | 399 | | |
408 | 400 | | |
409 | | - | |
| 401 | + | |
410 | 402 | | |
411 | 403 | | |
412 | 404 | | |
| |||
425 | 417 | | |
426 | 418 | | |
427 | 419 | | |
428 | | - | |
| 420 | + | |
429 | 421 | | |
430 | 422 | | |
431 | 423 | | |
| |||
0 commit comments