File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3837,9 +3837,9 @@ def multiple_components():
38373837 if direct_ancestor_dict .get ('entity_type' ).lower () != "dataset" :
38383838 bad_request_error (f"Direct ancestor is of type: { direct_ancestor_dict .get ('entity_type' )} . Must be of type 'dataset'." )
38393839
3840- # validate that there are 2 and only 2 datasets in the dataset list
3841- if len (json_data_dict .get ('datasets' )) != 2 :
3842- bad_request_error (f"'datasets' field must contain 2 component datasets ." )
3840+ # validate that there is at least one component dataset
3841+ if len (json_data_dict .get ('datasets' )) < 1 :
3842+ bad_request_error (f"'datasets' field must contain at leawst 1 dataset ." )
38433843
38443844 # Validate all datasets using existing schema with triggers and validators
38453845 for dataset in json_data_dict .get ('datasets' ):
You can’t perform that action at this time.
0 commit comments