Repository navigation
Commit aaabc39
committed
[java] Return null for null in MicroProfile's nullable top-level enums
With enumUnknownDefaultCase, MicroProfile's template for top-level enums
(enumOuterClass) returned the unknown default case for a null value as
well. Return null for null when the enum is nullable, as the other
templates now do.
Run the test for every set of enum templates this changes: okhttp-gson,
resttemplate (the base templates), native, and microprofile with Jackson
(its inner enums only have fromValue with Jackson).1 parent cc3856d commit aaabc39
2 files changed
Lines changed: 22 additions & 4 deletions
File tree
- modules/openapi-generator/src
- main/resources/Java/libraries/microprofile
- test/java/org/openapitools/codegen/java
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5778 | 5778 | | |
5779 | 5779 | | |
5780 | 5780 | | |
5781 | | - | |
5782 | | - | |
| 5781 | + | |
| 5782 | + | |
| 5783 | + | |
| 5784 | + | |
| 5785 | + | |
| 5786 | + | |
| 5787 | + | |
| 5788 | + | |
| 5789 | + | |
| 5790 | + | |
| 5791 | + | |
| 5792 | + | |
| 5793 | + | |
| 5794 | + | |
5783 | 5795 | | |
5784 | 5796 | | |
5785 | 5797 | | |
| |||
5788 | 5800 | | |
5789 | 5801 | | |
5790 | 5802 | | |
| 5803 | + | |
| 5804 | + | |
5791 | 5805 | | |
5792 | 5806 | | |
5793 | 5807 | | |
5794 | 5808 | | |
5795 | 5809 | | |
5796 | | - | |
| 5810 | + | |
| 5811 | + | |
5797 | 5812 | | |
5798 | 5813 | | |
5799 | 5814 | | |
| |||
0 commit comments