Skip to content

Commit 060b245

Browse files
committed
remove redundant fields
1 parent a8237f4 commit 060b245

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

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

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@ type: object
55
properties:
66
data:
77
type: object
8-
required:
9-
- fields
10-
- statistics
11-
properties:
12-
fields:
13-
type: array
14-
items:
15-
type: string
16-
description: 'Keys of the fields for which the statistics are provided.'
17-
statistics:
18-
type: object
19-
additionalProperties:
20-
$ref: ./DatasetFieldStatistics.yaml
21-
description: 'Statistics for each field. The keys are the same as in the `fields` array.'
8+
additionalProperties:
9+
$ref: ./DatasetFieldStatistics.yaml
10+
description: 'Statistics for each field from fields dataset schema.'

apify-api/openapi/paths/datasets/datasets@{datasetId}@field-statistics.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,11 @@ get:
3636
$ref: "../../components/schemas/datasets/GetDatasetFieldStatisticsResponse.yaml"
3737
example:
3838
data:
39-
fields: ["name", "price"]
40-
statistics: {
41-
name: {
42-
nullCount: 122
43-
},
44-
price: {
45-
min: 59,
46-
max: 89
47-
}
48-
}
39+
name:
40+
nullCount: 122
41+
price:
42+
min: 59
43+
max: 89
4944
# TODO: add clients methods
5045
# x-js-parent: DatasetClient
5146
# x-js-name: fieldStatistics

0 commit comments

Comments
 (0)