Skip to content

Commit

Permalink
Allow None Option for Active/Verified on Import/Reimport to Mirror UI…
Browse files Browse the repository at this point in the history
… Options (#11447)

* Allow for None for Verified and Active (just like the UI)

* update help text too
  • Loading branch information
hblankenship authored Dec 27, 2024
1 parent cd04d7e commit 15b3b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo/api_v2/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2087,10 +2087,10 @@ class CommonImportScanSerializer(serializers.Serializer):
help_text="Minimum severity level to be imported",
)
active = serializers.BooleanField(
help_text="Override the active setting from the tool.",
help_text="Force findings to be active/inactive or default to the original tool (None)", required=False,
)
verified = serializers.BooleanField(
help_text="Override the verified setting from the tool.",
help_text="Force findings to be verified/not verified or default to the original tool (None)", required=False,
)

# TODO: why do we allow only existing endpoints?
Expand Down

0 comments on commit 15b3b5a

Please sign in to comment.