user data subtitle can be null
This commit is contained in:
parent
42d5e73cd9
commit
2ec5e40f41
1 changed files with 8 additions and 5 deletions
|
@ -40,11 +40,14 @@ class UserDataSchema(BaseSchema):
|
||||||
description="data to show in the top right corner. can be the user name or `Login` or similar",
|
description="data to show in the top right corner. can be the user name or `Login` or similar",
|
||||||
example="ada_lovelace",
|
example="ada_lovelace",
|
||||||
)
|
)
|
||||||
subtitle: NonEmptyStr = APIField(
|
subtitle: Union[
|
||||||
title="user data subtitle",
|
Annotated[NonEmptyStr, APIField(
|
||||||
description="a description of the current user data state to display below the user data title",
|
title="user data subtitle",
|
||||||
example="3 areas unlocked",
|
description="a description of the current user data state to display below the user data title",
|
||||||
)
|
example="3 areas unlocked",
|
||||||
|
)],
|
||||||
|
None
|
||||||
|
]
|
||||||
permissions: list[PositiveInt] = APIField(
|
permissions: list[PositiveInt] = APIField(
|
||||||
title="access permissions",
|
title="access permissions",
|
||||||
description="IDs of access restrictions that this user (even if maybe not signed in) has access to",
|
description="IDs of access restrictions that this user (even if maybe not signed in) has access to",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue