From 2d18d030d9ce3341b9cd23ed745493a4dec55aa6 Mon Sep 17 00:00:00 2001 From: sfowl Date: Fri, 7 Jun 2024 05:50:39 +1000 Subject: [PATCH] Mark UserProfile properties user_contact_info and global_role as optional (#10314) --- dojo/api_v2/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dojo/api_v2/serializers.py b/dojo/api_v2/serializers.py index 6c9b3ee48f8..51dd30fa0b0 100644 --- a/dojo/api_v2/serializers.py +++ b/dojo/api_v2/serializers.py @@ -3013,8 +3013,8 @@ def validate(self, data): class UserProfileSerializer(serializers.Serializer): user = UserSerializer(many=False) - user_contact_info = UserContactInfoSerializer(many=False) - global_role = GlobalRoleSerializer(many=False) + user_contact_info = UserContactInfoSerializer(many=False, required=False) + global_role = GlobalRoleSerializer(many=False, required=False) dojo_group_member = DojoGroupMemberSerializer(many=True) product_type_member = ProductTypeMemberSerializer(many=True) product_member = ProductMemberSerializer(many=True)