update filter descriptions
This commit is contained in:
parent
0cf5a2aadf
commit
f96e916184
1 changed files with 4 additions and 3 deletions
|
@ -49,7 +49,8 @@ class FilterSchema(Schema):
|
||||||
class GroupFilter(FilterSchema):
|
class GroupFilter(FilterSchema):
|
||||||
group: Optional[int] = APIField(
|
group: Optional[int] = APIField(
|
||||||
None,
|
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):
|
def validate(self, request):
|
||||||
|
@ -67,8 +68,8 @@ class GroupFilter(FilterSchema):
|
||||||
class OnTopOfFilter(FilterSchema):
|
class OnTopOfFilter(FilterSchema):
|
||||||
on_top_of: Optional[Literal["null"] | int] = APIField(
|
on_top_of: Optional[Literal["null"] | int] = APIField(
|
||||||
None,
|
None,
|
||||||
name='filter by on top of level ID (or "null")',
|
title='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'
|
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):
|
def validate(self, request):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue