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
+10-20Lines changed: 10 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -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,13 +160,13 @@ public static EnumIntegerEnum fromValue(Integer value) {
158
160
returnb;
159
161
}
160
162
}
161
-
returnnull;
163
+
thrownewIllegalArgumentException("Unexpected value '" + value + "'");
0 commit comments