Skip to content

Commit 23419e5

Browse files
committed
fix: Fallback for page search schema
1 parent 6e45870 commit 23419e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

djangocms_rest/schemas.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def method_schema_decorator(method):
7575
name="q",
7676
type=OpenApiTypes.STR,
7777
location=OpenApiParameter.QUERY,
78-
description="Search for an exact match of the search term to find pages by title, page_title, menu_title, or meta_description",
78+
description="Search for an exact match of the search term to find pages",
7979
required=False,
8080
),
8181
]
@@ -96,3 +96,7 @@ def create_view_with_url_name(view_class, url_name):
9696
def extend_placeholder_schema(func):
9797
"""No-op when drf-spectacular is not available."""
9898
return func
99+
100+
def extend_page_search_schema(func):
101+
"""No-op when drf-spectacular is not available."""
102+
return func

0 commit comments

Comments
 (0)