diff --git a/dojo/api_v2/serializers.py b/dojo/api_v2/serializers.py index 6828d9c03c..31142dcdb4 100644 --- a/dojo/api_v2/serializers.py +++ b/dojo/api_v2/serializers.py @@ -2076,7 +2076,6 @@ class ImportScanSerializer(serializers.Serializer): product_type_name = serializers.CharField(required=False) product_name = serializers.CharField(required=False) product_scm_type = serializers.CharField(required=False) - scan_type = serializers.ChoiceField(choices=get_choices_sorted()) engagement_name = serializers.CharField(required=False) engagement_end_date = serializers.DateField( required=False, diff --git a/dojo/importers/auto_create_context.py b/dojo/importers/auto_create_context.py index afe3478c97..84926ea7b0 100644 --- a/dojo/importers/auto_create_context.py +++ b/dojo/importers/auto_create_context.py @@ -102,6 +102,8 @@ def process_import_meta_data_from_dict( self.process_object_name("product_type_name", data) # Validate the product_name self.process_object_name("product_name", data) + # Validate the product_scm_type + self.process_object_name("product_scm_type", data) # Validate the engagement_name self.process_object_name("engagement_name", data) # Validate the test_title