Skip to content

Commit 3619a7c

Browse files
algolia-botJerska
andcommitted
docs(specs): update api's length minimum value (generated)
algolia/api-clients-automation#3574 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Matthieu Dumont <[email protected]>
1 parent 2b83cf7 commit 3619a7c

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

algoliasearch/recommend/models/fallback_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class FallbackParams(BaseModel):
9595
offset: Optional[StrictInt] = Field(
9696
default=None, description="Position of the first hit to retrieve."
9797
)
98-
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = Field(
98+
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(
9999
default=None,
100100
description="Number of hits to retrieve (used in combination with `offset`).",
101101
)

algoliasearch/recommend/models/search_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class SearchParams(BaseModel):
9595
offset: Optional[StrictInt] = Field(
9696
default=None, description="Position of the first hit to retrieve."
9797
)
98-
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = Field(
98+
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(
9999
default=None,
100100
description="Number of hits to retrieve (used in combination with `offset`).",
101101
)

algoliasearch/recommend/models/search_params_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class SearchParamsObject(BaseModel):
9595
offset: Optional[StrictInt] = Field(
9696
default=None, description="Position of the first hit to retrieve."
9797
)
98-
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = Field(
98+
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(
9999
default=None,
100100
description="Number of hits to retrieve (used in combination with `offset`).",
101101
)

algoliasearch/search/models/browse_params_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class BrowseParamsObject(BaseModel):
9393
offset: Optional[StrictInt] = Field(
9494
default=None, description="Position of the first hit to retrieve."
9595
)
96-
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = Field(
96+
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(
9797
default=None,
9898
description="Number of hits to retrieve (used in combination with `offset`).",
9999
)

algoliasearch/search/models/consequence_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class ConsequenceParams(BaseModel):
9494
offset: Optional[StrictInt] = Field(
9595
default=None, description="Position of the first hit to retrieve."
9696
)
97-
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = Field(
97+
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(
9898
default=None,
9999
description="Number of hits to retrieve (used in combination with `offset`).",
100100
)

algoliasearch/search/models/search_for_facets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class SearchForFacets(BaseModel):
9797
offset: Optional[StrictInt] = Field(
9898
default=None, description="Position of the first hit to retrieve."
9999
)
100-
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = Field(
100+
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(
101101
default=None,
102102
description="Number of hits to retrieve (used in combination with `offset`).",
103103
)

algoliasearch/search/models/search_for_hits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class SearchForHits(BaseModel):
9797
offset: Optional[StrictInt] = Field(
9898
default=None, description="Position of the first hit to retrieve."
9999
)
100-
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = Field(
100+
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(
101101
default=None,
102102
description="Number of hits to retrieve (used in combination with `offset`).",
103103
)

algoliasearch/search/models/search_params_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class SearchParamsObject(BaseModel):
9393
offset: Optional[StrictInt] = Field(
9494
default=None, description="Position of the first hit to retrieve."
9595
)
96-
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = Field(
96+
length: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(
9797
default=None,
9898
description="Number of hits to retrieve (used in combination with `offset`).",
9999
)

0 commit comments

Comments
 (0)