Skip to content

Commit

Permalink
fix(custom-views): Allow view's query field to be empty (#76569)
Browse files Browse the repository at this point in the history
Views containing an empty query failed validation, and I can't think of
a reason to disallow empty queries.
  • Loading branch information
MichaelSun48 committed Aug 26, 2024
1 parent 77437b6 commit 9155480
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GroupSearchViewValidatorResponse(TypedDict):
class ViewValidator(serializers.Serializer):
id = serializers.CharField(required=False)
name = serializers.CharField(required=True)
query = serializers.CharField(required=True)
query = serializers.CharField(required=True, allow_blank=True)
querySort = serializers.ChoiceField(
choices=SortOptions.as_choices(), default=SortOptions.DATE, required=False
)
Expand Down

0 comments on commit 9155480

Please sign in to comment.