Minor Changes

This commit is contained in:
2024-04-01 19:22:08 +02:00
parent 43055dde1b
commit 515c3372c6
5 changed files with 5 additions and 12 deletions

View File

@@ -9,6 +9,7 @@ from pydantic.json_schema import SkipJsonSchema
T = TypeVar("T")
# SkipJsonSchema is used to avoid generating invalid JSON schema in FastAPI
class Page(AbstractPage[T], Generic[T]):
results: Sequence[T]
page: GreaterEqualOne | SkipJsonSchema[None] = None