You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/EnumTest.java
+28-34Lines changed: 28 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
4
4
*
5
5
* The version of the OpenAPI document: 1.0.0
6
-
*
6
+
*
7
7
*
8
8
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
* https://openapi-generator.tech
@@ -52,9 +52,9 @@ public class EnumTest {
52
52
*/
53
53
publicenumEnumStringEnum {
54
54
UPPER(String.valueOf("UPPER")),
55
-
55
+
56
56
LOWER(String.valueOf("lower")),
57
-
57
+
58
58
EMPTY(String.valueOf(""));
59
59
60
60
privateStringvalue;
@@ -93,9 +93,9 @@ public static EnumStringEnum fromValue(String value) {
93
93
*/
94
94
publicenumEnumStringRequiredEnum {
95
95
UPPER(String.valueOf("UPPER")),
96
-
96
+
97
97
LOWER(String.valueOf("lower")),
98
-
98
+
99
99
EMPTY(String.valueOf(""));
100
100
101
101
privateStringvalue;
@@ -133,7 +133,9 @@ public static EnumStringRequiredEnum fromValue(String value) {
133
133
* Gets or Sets enumInteger
134
134
*/
135
135
publicenumEnumIntegerEnum {
136
-
NUMBER_1(Integer.valueOf(1));
136
+
NUMBER_1(Integer.valueOf(1)),
137
+
138
+
NUMBER_MINUS_1(Integer.valueOf(-1));
137
139
138
140
privateIntegervalue;
139
141
@@ -158,20 +160,20 @@ public static EnumIntegerEnum fromValue(Integer value) {
158
160
returnb;
159
161
}
160
162
}
161
-
returnnull;
163
+
thrownewIllegalArgumentException("Unexpected value '" + value + "'");
0 commit comments