Skip to content

Commit f907180

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[FA] Fix minimum page value (#3066)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 83dabaf commit f907180

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59714,13 +59714,14 @@ paths:
5971459714
results.'
5971559715
operationId: ListFleetAgents
5971659716
parameters:
59717-
- description: Page number for pagination (must be greater than 0).
59717+
- description: Page number for pagination (starts at 0).
5971859718
in: query
5971959719
name: page_number
5972059720
required: false
5972159721
schema:
59722+
default: 0
5972259723
format: int64
59723-
minimum: 1
59724+
minimum: 0
5972459725
type: integer
5972559726
- description: Number of results per page (must be greater than 0 and less than
5972659727
or equal to 100).

src/datadog_api_client/v2/api/fleet_automation_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def __init__(self, api_client=None):
249249
params_map={
250250
"page_number": {
251251
"validation": {
252-
"inclusive_minimum": 1,
252+
"inclusive_minimum": 0,
253253
},
254254
"openapi_types": (int,),
255255
"attribute": "page_number",
@@ -650,7 +650,7 @@ def list_fleet_agents(
650650
This endpoint returns a paginated list of all Datadog Agents with support for pagination, sorting, and filtering.
651651
Use the ``page_number`` and ``page_size`` query parameters to paginate through results.
652652
653-
:param page_number: Page number for pagination (must be greater than 0).
653+
:param page_number: Page number for pagination (starts at 0).
654654
:type page_number: int, optional
655655
:param page_size: Number of results per page (must be greater than 0 and less than or equal to 100).
656656
:type page_size: int, optional

0 commit comments

Comments
 (0)