diff --git a/authentik/core/api/groups.py b/authentik/core/api/groups.py index e3d725159..46e220855 100644 --- a/authentik/core/api/groups.py +++ b/authentik/core/api/groups.py @@ -10,7 +10,7 @@ from authentik.core.models import Group class GroupSerializer(ModelSerializer): """Group Serializer""" - attributes = JSONField(validators=[is_dict]) + attributes = JSONField(validators=[is_dict], required=False) class Meta: diff --git a/authentik/core/api/users.py b/authentik/core/api/users.py index a5b572b04..a27204623 100644 --- a/authentik/core/api/users.py +++ b/authentik/core/api/users.py @@ -26,7 +26,7 @@ class UserSerializer(ModelSerializer): is_superuser = BooleanField(read_only=True) avatar = CharField(read_only=True) - attributes = JSONField(validators=[is_dict]) + attributes = JSONField(validators=[is_dict], required=False) class Meta: diff --git a/authentik/stages/invitation/api.py b/authentik/stages/invitation/api.py index f55912de9..b1ce74cd5 100644 --- a/authentik/stages/invitation/api.py +++ b/authentik/stages/invitation/api.py @@ -29,7 +29,7 @@ class InvitationStageViewSet(ModelViewSet): class InvitationSerializer(ModelSerializer): """Invitation Serializer""" - fixed_data = JSONField(validators=[is_dict]) + fixed_data = JSONField(validators=[is_dict], required=False) class Meta: diff --git a/swagger.yaml b/swagger.yaml index 47fc0b70c..346297091 100755 --- a/swagger.yaml +++ b/swagger.yaml @@ -17725,7 +17725,6 @@ definitions: x-nullable: true fixed_data: title: Fixed data - description: Optional fixed data to enforce on user enrollment. type: object created_by: required: