From 2826c14e6b8adab19618b24072942fbfc3690d04 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 9 Dec 2024 17:02:46 +0000 Subject: [PATCH] chore: update swagger.json from lightdash --- swagger.json | 65 +++++++++++++++++++++++++++++++++++----------------- 1 file changed, 44 insertions(+), 21 deletions(-) diff --git a/swagger.json b/swagger.json index 1adb23e..c461324 100644 --- a/swagger.json +++ b/swagger.json @@ -4226,14 +4226,6 @@ "UpdateDBProjectGroupAccess": { "$ref": "#/components/schemas/Pick_DBProjectGroupAccess.role_" }, - "Record_string._value-ResultValue--__": { - "properties": {}, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "ResultRow": { - "$ref": "#/components/schemas/Record_string._value-ResultValue--__" - }, "Record_string.Field-or-TableCalculation-or-CustomDimension-or-Metric_": { "properties": {}, "type": "object", @@ -4242,31 +4234,62 @@ "ItemsMap": { "$ref": "#/components/schemas/Record_string.Field-or-TableCalculation-or-CustomDimension-or-Metric_" }, - "MetricsExplorerQueryResults": { + "MetricExploreDataPoint": { "properties": { - "fields": { - "$ref": "#/components/schemas/ItemsMap" + "compareMetric": { + "type": "number", + "format": "double", + "nullable": true }, - "comparisonRows": { - "items": { - "$ref": "#/components/schemas/ResultRow" - }, - "type": "array" + "metric": { + "type": "number", + "format": "double", + "nullable": true }, - "rows": { + "date": { + "type": "string", + "format": "date-time" + } + }, + "required": ["compareMetric", "metric", "date"], + "type": "object" + }, + "MetricExploreDataPointWithDateValue": { + "allOf": [ + { + "$ref": "#/components/schemas/MetricExploreDataPoint" + }, + { + "properties": { + "dateValue": { + "type": "number", + "format": "double" + } + }, + "required": ["dateValue"], + "type": "object" + } + ] + }, + "MetricsExplorerQueryResults": { + "properties": { + "results": { "items": { - "$ref": "#/components/schemas/ResultRow" + "$ref": "#/components/schemas/MetricExploreDataPointWithDateValue" }, "type": "array" }, - "comparisonMetric": { + "fields": { + "$ref": "#/components/schemas/ItemsMap" + }, + "compareMetric": { "$ref": "#/components/schemas/MetricWithAssociatedTimeDimension" }, "metric": { "$ref": "#/components/schemas/MetricWithAssociatedTimeDimension" } }, - "required": ["fields", "rows", "metric"], + "required": ["results", "fields", "metric"], "type": "object" }, "ApiMetricsExplorerQueryResults": { @@ -14432,7 +14455,7 @@ } ], "requestBody": { - "required": false, + "required": true, "content": { "application/json": { "schema": {