Skip to content

Commit

Permalink
Add product_scm_type field processing in auto_create_context for impo…
Browse files Browse the repository at this point in the history
…rt-scan route
  • Loading branch information
Dmitry Maryushkin committed Oct 7, 2024
1 parent fec410c commit 4564ab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion dojo/api_v2/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions dojo/importers/auto_create_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4564ab6

Please sign in to comment.