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
error_messages.append(f"Error! Input type `{type(v)}` is not `DatasetResource`")
90
93
else:
91
94
match+=1
95
+
# validate data type: MlModelResource
96
+
ifnotisinstance(v, MlModelResource):
97
+
error_messages.append(f"Error! Input type `{type(v)}` is not `MlModelResource`")
98
+
else:
99
+
match+=1
92
100
ifmatch>1:
93
101
# more than 1 match
94
-
raiseValueError("Multiple matches found when setting `actual_instance` in Resource with oneOf schemas: DatasetResource, LayerCollectionResource, LayerResource, ProjectResource. Details: "+", ".join(error_messages))
102
+
raiseValueError("Multiple matches found when setting `actual_instance` in Resource with oneOf schemas: DatasetResource, LayerCollectionResource, LayerResource, MlModelResource, ProjectResource. Details: "+", ".join(error_messages))
95
103
elifmatch==0:
96
104
# no match
97
-
raiseValueError("No match found when setting `actual_instance` in Resource with oneOf schemas: DatasetResource, LayerCollectionResource, LayerResource, ProjectResource. Details: "+", ".join(error_messages))
105
+
raiseValueError("No match found when setting `actual_instance` in Resource with oneOf schemas: DatasetResource, LayerCollectionResource, LayerResource, MlModelResource, ProjectResource. Details: "+", ".join(error_messages))
raiseValueError("Multiple matches found when deserializing the JSON string into Resource with oneOf schemas: DatasetResource, LayerCollectionResource, LayerResource, ProjectResource. Details: "+", ".join(error_messages))
208
+
raiseValueError("Multiple matches found when deserializing the JSON string into Resource with oneOf schemas: DatasetResource, LayerCollectionResource, LayerResource, MlModelResource, ProjectResource. Details: "+", ".join(error_messages))
185
209
elifmatch==0:
186
210
# no match
187
-
raiseValueError("No match found when deserializing the JSON string into Resource with oneOf schemas: DatasetResource, LayerCollectionResource, LayerResource, ProjectResource. Details: "+", ".join(error_messages))
211
+
raiseValueError("No match found when deserializing the JSON string into Resource with oneOf schemas: DatasetResource, LayerCollectionResource, LayerResource, MlModelResource, ProjectResource. Details: "+", ".join(error_messages))
0 commit comments