From f96e9161845b8e5c13cb59a06d24b0e16c8f1497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sat, 18 Nov 2023 22:45:24 +0100 Subject: [PATCH] update filter descriptions --- src/c3nav/mapdata/schemas/filters.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/c3nav/mapdata/schemas/filters.py b/src/c3nav/mapdata/schemas/filters.py index 9bb8a776..f9eee997 100644 --- a/src/c3nav/mapdata/schemas/filters.py +++ b/src/c3nav/mapdata/schemas/filters.py @@ -49,7 +49,8 @@ class FilterSchema(Schema): class GroupFilter(FilterSchema): group: Optional[int] = APIField( None, - name="filter by location group" + title="filter by location group", + description="if set, only items belonging to the location group with that ID will be shown" ) def validate(self, request): @@ -67,8 +68,8 @@ class GroupFilter(FilterSchema): class OnTopOfFilter(FilterSchema): on_top_of: Optional[Literal["null"] | int] = APIField( None, - name='filter by on top of level ID (or "null")', - description='if set, only levels on top of this level (or "null" for no level) will be shown' + title='filter by on top of level ID (or "null")', + description='if set, only levels on top of the level with this ID (or "null" for no level) will be shown' ) def validate(self, request):