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
{{ message }}
Repository navigation
Commit 294eaa6
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/MyExampleGet200Response.java
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ public Map<String, Class<?>> getSchemas() {
183
183
/**
184
184
* Set the instance that matches the oneOf child schema, check
185
185
* the instance parameter is valid against the oneOf child schemas:
186
-
* List<@Valid OneOf1>, OneOf1
186
+
* List<@Valid OneOf1>, OneOf1
187
187
*
188
188
* It could be an instance of the 'oneOf' schemas.
189
189
*/
@@ -207,9 +207,9 @@ public void setActualInstance(Object instance) {
207
207
208
208
/**
209
209
* Get the actual instance, which can be the following:
210
-
* List<@Valid OneOf1>, OneOf1
210
+
* List<@Valid OneOf1>, OneOf1
211
211
*
212
-
* @return The actual instance (List<@Valid OneOf1>, OneOf1)
212
+
* @return The actual instance (List<@Valid OneOf1>, OneOf1)
213
213
*/
214
214
@SuppressWarnings("unchecked")
215
215
@Override
@@ -218,12 +218,13 @@ public Object getActualInstance() {
218
218
}
219
219
220
220
/**
221
-
* Get the actual instance of `List<@Valid OneOf1>`. If the actual instance is not `List<@Valid OneOf1>`,
221
+
* Get the actual instance of `List<@Valid OneOf1>`. If the actual instance is not `List<@Valid OneOf1>`,
222
222
* the ClassCastException will be thrown.
223
223
*
224
-
* @return The actual instance of `List<@Valid OneOf1>`
225
-
* @throws ClassCastException if the instance is not `List<@Valid OneOf1>`
224
+
* @return The actual instance of `List<@Valid OneOf1>`
225
+
* @throws ClassCastException if the instance is not `List<@Valid OneOf1>`
Copy file name to clipboardExpand all lines: samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/model/MyExamplePostRequest.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,7 @@ public Object getActualInstance() {
174
174
* @return The actual instance of `String`
175
175
* @throws ClassCastException if the instance is not `String`
Copy file name to clipboardExpand all lines: samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SimpleOneOf.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -202,6 +202,7 @@ public Object getActualInstance() {
202
202
* @return The actual instance of `String`
203
203
* @throws ClassCastException if the instance is not `String`
Copy file name to clipboardExpand all lines: samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/OneOfStringOrInt.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -201,6 +201,7 @@ public Object getActualInstance() {
201
201
* @return The actual instance of `String`
202
202
* @throws ClassCastException if the instance is not `String`
Copy file name to clipboardExpand all lines: samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/RefRefToPathLevelParameterOneofRefToOneofParameter.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -201,6 +201,7 @@ public Object getActualInstance() {
201
201
* @return The actual instance of `String`
202
202
* @throws ClassCastException if the instance is not `String`
Copy file name to clipboardExpand all lines: samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/RefToRefParameterAnyofRefToAnyofParameter.java
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ public Map<String, Class<?>> getSchemas() {
174
174
/**
175
175
* Set the instance that matches the oneOf child schema, check
176
176
* the instance parameter is valid against the oneOf child schemas:
177
-
* List<String>, String
177
+
* List<String>, String
178
178
*
179
179
* It could be an instance of the 'oneOf' schemas.
180
180
*/
@@ -198,9 +198,9 @@ public void setActualInstance(Object instance) {
198
198
199
199
/**
200
200
* Get the actual instance, which can be the following:
201
-
* List<String>, String
201
+
* List<String>, String
202
202
*
203
-
* @return The actual instance (List<String>, String)
203
+
* @return The actual instance (List<String>, String)
204
204
*/
205
205
@SuppressWarnings("unchecked")
206
206
@Override
@@ -215,17 +215,19 @@ public Object getActualInstance() {
215
215
* @return The actual instance of `String`
216
216
* @throws ClassCastException if the instance is not `String`
Copy file name to clipboardExpand all lines: samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceOneOf.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -201,6 +201,7 @@ public Object getActualInstance() {
201
201
* @return The actual instance of `String`
202
202
* @throws ClassCastException if the instance is not `String`
Copy file name to clipboardExpand all lines: samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributesC.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -211,6 +211,7 @@ public Object getActualInstance() {
211
211
* @return The actual instance of `Pet`
212
212
* @throws ClassCastException if the instance is not `Pet`
213
213
*/
214
+
@SuppressWarnings("unchecked")
214
215
publicPetgetPet() throwsClassCastException {
215
216
return (Pet)super.getActualInstance();
216
217
}
@@ -222,6 +223,7 @@ public Pet getPet() throws ClassCastException {
222
223
* @return The actual instance of `Order`
223
224
* @throws ClassCastException if the instance is not `Order`
0 commit comments