Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Update OpenAPI spec (#67256)

Stas Gavrylov3f79bc36e548
diff --git a/resources/openapi/openapi.json b/resources/openapi/openapi.json
index c2ae1e1dc3c..27003e6ff1d 100644
--- a/resources/openapi/openapi.json
+++ b/resources/openapi/openapi.json
@@ -4821,8 +4821,7 @@
"options" : {
"description" : "optional map to be appended to filter clause",
"oneOf" : [ {
- "additionalProperties" : { },
- "type" : "object"
+ "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.FieldFilter.Options"
}, {
"type" : "null"
} ]
@@ -4842,6 +4841,10 @@
"required" : [ "type", "name", "display-name", "dimension", "widget-type" ],
"type" : "object"
},
+ "metabase.legacy-mbql.schema..TemplateTag.FieldFilter.Options" : {
+ "additionalProperties" : { },
+ "type" : "object"
+ },
"metabase.legacy-mbql.schema..TemplateTag.RawValue" : {
"description" : "Things required by all template tag types.",
"properties" : {
@@ -5280,12 +5283,16 @@
} ]
},
"metabase.legacy-mbql.schema.Aggregation" : {
- "description" : "Schema for anything that is a valid `:aggregation` clause.",
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.aggregation-options"
+ "allOf" : [ {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.aggregation-options"
+ }, {
+ "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.UnnamedAggregation"
+ } ]
}, {
- "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.UnnamedAggregation"
- } ]
+ "description" : "Normalization should automatically unwrap :aggregation-options with an empty options map"
+ } ],
+ "description" : "Schema for anything that is a valid `:aggregation` clause."
},
"metabase.legacy-mbql.schema.AggregationOptionsOptions" : {
"description" : "Additional options for any aggregation clause when wrapping it in `:aggregation-options`.",
@@ -5468,6 +5475,12 @@
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.datetime"
}, {
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.today"
+ }, {
+ "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.coalesce"
+ }, {
+ "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.case"
+ }, {
+ "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.if"
} ]
},
"metabase.legacy-mbql.schema.DatetimeOptions" : {
@@ -5614,13 +5627,19 @@
"description" : "Schema for anything that is accepted as a top-level expression definition, either an arithmetic expression such as a\n `:+` clause or a `:field` or `:value` clause.",
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NumericExpression"
+ }, {
+ "type" : "number"
}, {
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.StringExpression"
+ }, {
+ "type" : "string"
}, {
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.BooleanExpression"
}, {
- "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DatetimeExpression"
+ "type" : "boolean"
}, {
+ "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DatetimeExpression"
+ }, { }, {
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.case"
}, {
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.if"
@@ -22585,9 +22604,6 @@
"state" : {
"properties" : { },
"type" : "object"
- },
- "use_case" : {
- "type" : "string"
}
},
"required" : [ "message", "context", "conversation_id", "history", "state" ],
@@ -22750,24 +22766,6 @@
"type" : "null"
} ]
},
- "use_cases" : {
- "items" : {
- "additionalProperties" : false,
- "properties" : {
- "enabled" : {
- "type" : "boolean"
- },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "minimum" : 1,
- "type" : "integer"
- }
- },
- "required" : [ "id" ],
- "type" : "object"
- },
- "type" : "array"
- },
"use_verified_content" : {
"type" : "boolean"
}