Skip to content

Commit 2946495

Browse files
authored
fix: missing fields on dataset endpoint response (#1547)
Adds `stats` and `schema` fields to the response definition of `GET /datasets/:id` Closes [#20565](apify/apify-core#20565)
1 parent 7460944 commit 2946495

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

apify-api/openapi/components/schemas/datasets/Dataset.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,27 @@ properties:
4747
type: string
4848
description: ''
4949
nullable: true
50+
schema:
51+
type: object
52+
nullable: true
53+
description: Defines the schema of items in your dataset, the full specification can be found in [Apify docs](/platform/actors/development/actor-definition/dataset-schema)
54+
example:
55+
actorSpecification: 1
56+
title: "My dataset"
57+
views:
58+
overview:
59+
title: "Overview"
60+
transformation:
61+
fields:
62+
- "linkUrl"
63+
display:
64+
component: "table"
65+
properties:
66+
linkUrl:
67+
label: "Link URL"
68+
format: "link"
5069
consoleUrl:
5170
type: string
5271
example: 'https://console.apify.com/storage/datasets/27TmTznX9YPeAYhkC'
72+
stats:
73+
$ref: ./DatasetStats.yaml
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
title: DatasetStats
2+
required:
3+
- readCount
4+
- writeCount
5+
- storageBytes
6+
type: object
7+
properties:
8+
readCount:
9+
type: number
10+
example: 22
11+
writeCount:
12+
type: number
13+
example: 3
14+
storageBytes:
15+
type: number
16+
example: 783

0 commit comments

Comments
 (0)