Skip to content

Commit

Permalink
Mark Finding properties related_fields, jira_creation and jira_change…
Browse files Browse the repository at this point in the history
… as nullable (#10371)

Co-authored-by: Camilo Cota <[email protected]>
  • Loading branch information
ccronca and ccronca authored Jul 3, 2024
1 parent 8d631e3 commit c7cc407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dojo/api_v2/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1645,10 +1645,10 @@ class FindingSerializer(TaggitSerializer, serializers.ModelSerializer):
age = serializers.IntegerField(read_only=True)
sla_days_remaining = serializers.IntegerField(read_only=True)
finding_meta = FindingMetaSerializer(read_only=True, many=True)
related_fields = serializers.SerializerMethodField()
related_fields = serializers.SerializerMethodField(allow_null=True)
# for backwards compatibility
jira_creation = serializers.SerializerMethodField(read_only=True)
jira_change = serializers.SerializerMethodField(read_only=True)
jira_creation = serializers.SerializerMethodField(read_only=True, allow_null=True)
jira_change = serializers.SerializerMethodField(read_only=True, allow_null=True)
display_status = serializers.SerializerMethodField()
finding_groups = FindingGroupSerializer(
source="finding_group_set", many=True, read_only=True
Expand Down

0 comments on commit c7cc407

Please sign in to comment.