Skip to content

Commit 423268a

Browse files
feat(api): expose test retrieval endpoint
1 parent 8e554d1 commit 423268a

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
configured_endpoints: 17
2-
openapi_spec_hash: 17fb5502c19253c7c89785273e89b023
2+
openapi_spec_hash: 8827ead72aa0c635ccafac5e008fe247
33
config_hash: 087e6b8013c398a6d24031d24594fdec

src/openlayer/types/projects/test_list_response.py

+17-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,21 @@
88

99
from ..._models import BaseModel
1010

11-
__all__ = ["TestListResponse", "Item", "ItemThreshold", "ItemThresholdInsightParameter"]
11+
__all__ = ["TestListResponse", "_Meta", "Item", "ItemThreshold", "ItemThresholdInsightParameter"]
12+
13+
14+
class _Meta(BaseModel):
15+
page: int
16+
"""The current page."""
17+
18+
per_page: int = FieldInfo(alias="perPage")
19+
"""The number of items per page."""
20+
21+
total_items: int = FieldInfo(alias="totalItems")
22+
"""The total number of items."""
23+
24+
total_pages: int = FieldInfo(alias="totalPages")
25+
"""The total number of pages."""
1226

1327

1428
class ItemThresholdInsightParameter(BaseModel):
@@ -154,4 +168,6 @@ class Item(BaseModel):
154168

155169
class TestListResponse(BaseModel):
156170
__test__ = False
171+
api_meta: _Meta = FieldInfo(alias="_meta")
172+
157173
items: List[Item]

0 commit comments

Comments
 (0)