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 c486fab commit 1fe184eCopy full SHA for 1fe184e
ninja/pagination.py
@@ -237,13 +237,13 @@ class Cursor(BaseModel):
237
"""
238
239
p: Optional[str] = Field(
240
- None,
+ default=None,
241
title="position",
242
description="String identifier for the current position in the dataset",
243
)
244
245
r: bool = Field(
246
- False,
+ default=False,
247
title="reverse",
248
description="Whether to reverse the ordering direction",
249
@@ -252,7 +252,7 @@ class Cursor(BaseModel):
252
# e.g. if created time of two items is exactly the same, we can use the offset
253
# to figure out the position exactly
254
o: int = Field(
255
- 0,
+ default=0,
256
ge=0,
257
lt=settings.PAGINATION_MAX_OFFSET,
258
title="offset",
0 commit comments