user data subtitle can be null

This commit is contained in:
Gwendolyn 2023-12-12 16:55:54 +01:00
parent 42d5e73cd9
commit 2ec5e40f41

View file

@ -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",