From 060b2450fdc7104918cdaf0c9a64c303250cc312 Mon Sep 17 00:00:00 2001 From: martinforejt Date: Wed, 18 Dec 2024 18:13:39 +0100 Subject: [PATCH] remove redundant fields --- .../GetDatasetFieldStatisticsResponse.yaml | 17 +++-------------- .../datasets@{datasetId}@field-statistics.yaml | 15 +++++---------- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/apify-api/openapi/components/schemas/datasets/GetDatasetFieldStatisticsResponse.yaml b/apify-api/openapi/components/schemas/datasets/GetDatasetFieldStatisticsResponse.yaml index e69a88ec3..29365bd3e 100644 --- a/apify-api/openapi/components/schemas/datasets/GetDatasetFieldStatisticsResponse.yaml +++ b/apify-api/openapi/components/schemas/datasets/GetDatasetFieldStatisticsResponse.yaml @@ -5,17 +5,6 @@ type: object properties: data: type: object - required: - - fields - - statistics - properties: - fields: - type: array - items: - type: string - description: 'Keys of the fields for which the statistics are provided.' - statistics: - type: object - additionalProperties: - $ref: ./DatasetFieldStatistics.yaml - description: 'Statistics for each field. The keys are the same as in the `fields` array.' + additionalProperties: + $ref: ./DatasetFieldStatistics.yaml + description: 'Statistics for each field from fields dataset schema.' diff --git a/apify-api/openapi/paths/datasets/datasets@{datasetId}@field-statistics.yaml b/apify-api/openapi/paths/datasets/datasets@{datasetId}@field-statistics.yaml index ba5e3c23c..ed120df4c 100644 --- a/apify-api/openapi/paths/datasets/datasets@{datasetId}@field-statistics.yaml +++ b/apify-api/openapi/paths/datasets/datasets@{datasetId}@field-statistics.yaml @@ -36,16 +36,11 @@ get: $ref: "../../components/schemas/datasets/GetDatasetFieldStatisticsResponse.yaml" example: data: - fields: ["name", "price"] - statistics: { - name: { - nullCount: 122 - }, - price: { - min: 59, - max: 89 - } - } + name: + nullCount: 122 + price: + min: 59 + max: 89 # TODO: add clients methods # x-js-parent: DatasetClient # x-js-name: fieldStatistics