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
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
error_messages.append(f"Error! Input type `{type(v)}` is not `StudysetRequestRelationshipsStudiesInnerAnyOf`")
69
76
else:
70
-
match+=1
71
-
ifmatch>1:
72
-
# more than 1 match
73
-
raiseValueError("Multiple matches found when setting `actual_instance` in StudysetRequestRelationshipsStudiesInner with oneOf schemas: StudysetRequestRelationshipsStudiesInnerOneOf, str. Details: "+", ".join(error_messages))
74
-
elifmatch==0:
77
+
returnv
78
+
79
+
# validate data type: StudyRequest
80
+
ifnotisinstance(v, StudyRequest):
81
+
error_messages.append(f"Error! Input type `{type(v)}` is not `StudyRequest`")
82
+
else:
83
+
returnv
84
+
85
+
iferror_messages:
75
86
# no match
76
-
raiseValueError("No match found when setting `actual_instance` in StudysetRequestRelationshipsStudiesInner with oneOf schemas: StudysetRequestRelationshipsStudiesInnerOneOf, str. Details: "+", ".join(error_messages))
87
+
raiseValueError("No match found when setting the actual_instance in StudysetRequestRelationshipsStudiesInner with anyOf schemas: StudyRequest, StudysetRequestRelationshipsStudiesInnerAnyOf, str. Details: "+", ".join(error_messages))
raiseValueError("Multiple matches found when deserializing the JSON string into StudysetRequestRelationshipsStudiesInner with oneOf schemas: StudysetRequestRelationshipsStudiesInnerOneOf, str. Details: "+", ".join(error_messages))
110
-
elifmatch==0:
122
+
iferror_messages:
111
123
# no match
112
-
raiseValueError("No match found when deserializing the JSON string into StudysetRequestRelationshipsStudiesInner with oneOf schemas: StudysetRequestRelationshipsStudiesInnerOneOf, str. Details: "+", ".join(error_messages))
124
+
raiseValueError("No match found when deserializing the JSON string into StudysetRequestRelationshipsStudiesInner with anyOf schemas: StudyRequest, StudysetRequestRelationshipsStudiesInnerAnyOf, str. Details: "+", ".join(error_messages))
0 commit comments