We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55bb97d commit 9077f5aCopy full SHA for 9077f5a
openlibrary/fastapi/search.py
@@ -18,7 +18,7 @@
18
ListQuery = Annotated[list[str], Query(default_factory=list)]
19
20
21
-# Ideally this will go in a models files
+# Ideally this will go in a models files, we'll move it for the 2nd endpoint
22
class Pagination(BaseModel):
23
limit: int = 100
24
offset: int | None = None
@@ -31,7 +31,7 @@ def model_post_init(self, _):
31
self.page = self.page or 1
32
33
34
-# Ideally this will go in a dependencies file
+# Ideally this will go in a dependencies file, we'll move it for the 2nd endpoint
35
def pagination(
36
limit: Annotated[int, Query(ge=1)] = 100,
37
offset: Annotated[int | None, Query(ge=0)] = None,
0 commit comments