Skip to content

Commit

Permalink
Mark UserProfile properties user_contact_info and global_role as opti…
Browse files Browse the repository at this point in the history
…onal (#10314)
  • Loading branch information
sfowl authored Jun 6, 2024
1 parent aed0252 commit 2d18d03
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 @@ -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)
Expand Down

0 comments on commit 2d18d03

Please sign in to comment.