Skip to content

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

Auto-update documentation for master (#82298)

github-automation-metabasec998859487b4
diff --git a/docs/api.json b/docs/api.json
index 7aabd76c7fb..8f44828e642 100644
--- a/docs/api.json
+++ b/docs/api.json
@@ -1090,9 +1090,78 @@
},
"lib/source-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
+ "join-alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
}
},
- "required" : [ "lib/uuid" ]
+ "required" : [ "lib/uuid" ],
+ "additionalProperties" : false
}, { } ]
}, {
"$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
@@ -1156,14 +1225,22 @@
} ]
},
"metabase-enterprise.action-v2.api.action-value-map" : {
- "description" : "A map from parameter name / column name to a value. Keys are keywords: the request decoder keywordizes map keys and\n the handler reads them via `(keyword ...)`, so the FE never sends anything else.\n\n Same shape as [[metabase.actions.schema/execute-parameter-values]]. Decoding sees a permissive\n `[:map-of :keyword :any]` and the values are validated against, rather than decoded through,\n [[strict-action-value-map]].",
- "type" : "object",
- "additionalProperties" : { }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
},
"metabase-enterprise.action-v2.api.api-action-expression" : {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
},
"metabase-enterprise.action-v2.api.api-action-id" : {
"description" : "Primitive actions, saved actions, and packed encodings from the picker.",
@@ -1289,7 +1366,8 @@
}
}
},
- "required" : [ "collection_id" ]
+ "required" : [ "collection_id" ],
+ "additionalProperties" : false
},
"metabase-enterprise.data-studio.api.table.publish-tables-response" : {
"description" : "Schema for /publish-tables endpoint response. Matches frontend PublishTablesResponse type.",
@@ -1330,7 +1408,8 @@
"minimum" : 1
}
}
- }
+ },
+ "additionalProperties" : false
},
"metabase-enterprise.dependencies.api.base-entity" : {
"type" : "object",
@@ -2052,7 +2131,8 @@
} ]
}
},
- "required" : [ "database-id" ]
+ "required" : [ "database-id" ],
+ "additionalProperties" : false
},
"metabase-enterprise.erd.impl.erd-response" : {
"type" : "object",
@@ -2344,7 +2424,8 @@
} ]
}
},
- "required" : [ "grant_duration_minutes" ]
+ "required" : [ "grant_duration_minutes" ],
+ "additionalProperties" : false
},
"metabase-enterprise.support-access-grants.schema.current-grant-response" : {
"description" : "Schema for GET /api/ee/support-access-grants/current response.",
@@ -2463,6 +2544,10 @@
"metabase-enterprise.support-access-grants.schema.timestamp" : {
"anyOf" : [ { }, { } ]
},
+ "metabase-enterprise.transforms-inspector.schema..lens-params.request" : {
+ "description" : "[[::lens-params]] as the FE echoes them back to the lens endpoints.",
+ "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.lens-params"
+ },
"metabase-enterprise.transforms-inspector.schema.alert-trigger" : {
"description" : "Definition for conditional alerts.\n FE evaluates condition against card results and shows alert if triggered.",
"type" : "object",
@@ -2827,23 +2912,18 @@
"required" : [ "id", "display_name" ]
},
"metabase-enterprise.transforms-inspector.schema.lens-params" : {
- "description" : "Params passed to a drill lens (e.g. `{:join_step 2}`), emitted on drill-lens triggers and echoed back by the FE\n to the lens endpoints. Scalar values only.",
+ "description" : "Params passed to a drill lens, emitted on drill-lens triggers and echoed back by the FE to the lens endpoints.\n `:join_step` scopes the unmatched-rows lens to one join; it is the only param any lens takes.",
"type" : "object",
- "additionalProperties" : {
- "oneOf" : [ {
- "anyOf" : [ {
- "type" : "string"
- }, {
+ "properties" : {
+ "join_step" : {
+ "oneOf" : [ {
"type" : "integer"
}, {
- "type" : "boolean"
- }, {
- "type" : "number"
+ "type" : "null"
} ]
- }, {
- "type" : "null"
- } ]
- }
+ }
+ },
+ "additionalProperties" : false
},
"metabase-enterprise.transforms-inspector.schema.lens-summary" : {
"description" : "Summary section of a lens.",
@@ -2992,7 +3072,9 @@
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
}, {
"type" : "null"
} ]
@@ -3004,6 +3086,13 @@
"type" : "null"
} ]
},
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"parameter_mappings" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
@@ -3011,12 +3100,34 @@
"type" : "null"
} ]
},
+ "made_public_by_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"type" : "string"
},
"archived" : {
"type" : "boolean"
},
+ "database_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"type" : {
"$ref" : "#/components/schemas/metabase.actions.schema.type"
},
@@ -3034,12 +3145,42 @@
"type" : "null"
} ]
},
+ "created_at" : { },
+ "public_uuid" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid UUID.",
+ "type" : "string",
+ "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
+ }, {
+ "type" : "null"
+ } ]
+ },
"model_id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
+ "disabled" : {
+ "type" : "boolean"
+ },
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3052,13 +3193,23 @@
} ]
}
},
- "required" : [ "name", "type", "model_id" ]
+ "required" : [ "name", "type", "model_id" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3070,12 +3221,34 @@
"type" : "null"
} ]
},
+ "made_public_by_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"type" : "string"
},
"archived" : {
"type" : "boolean"
},
+ "database_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"kind" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.actions.schema..implicit-action.kind"
@@ -3086,12 +3259,39 @@
"type" : {
"$ref" : "#/components/schemas/metabase.actions.schema.type"
},
+ "created_at" : { },
+ "public_uuid" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid UUID.",
+ "type" : "string",
+ "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
+ }, {
+ "type" : "null"
+ } ]
+ },
"model_id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3104,13 +3304,23 @@
} ]
}
},
- "required" : [ "name", "type", "model_id" ]
+ "required" : [ "name", "type", "model_id" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3129,6 +3339,13 @@
"type" : "null"
} ]
},
+ "made_public_by_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"type" : "string"
},
@@ -3142,15 +3359,50 @@
"type" : "null"
} ]
},
+ "updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"type" : {
"$ref" : "#/components/schemas/metabase.actions.schema.type"
},
+ "created_at" : { },
+ "public_uuid" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid UUID.",
+ "type" : "string",
+ "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
+ }, {
+ "type" : "null"
+ } ]
+ },
"model_id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3163,13 +3415,16 @@
} ]
}
},
- "required" : [ "name", "type", "model_id" ]
+ "required" : [ "name", "type", "model_id" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
}, {
"type" : "null"
} ]
@@ -3181,6 +3436,13 @@
"type" : "null"
} ]
},
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"dataset_query" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-or-empty-query"
@@ -3195,6 +3457,13 @@
"type" : "null"
} ]
},
+ "made_public_by_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"type" : "string"
},
@@ -3208,6 +3477,14 @@
"type" : "null"
} ]
},
+ "updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"kind" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.actions.schema..implicit-action.kind"
@@ -3232,12 +3509,42 @@
"type" : "null"
} ]
},
+ "created_at" : { },
+ "public_uuid" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid UUID.",
+ "type" : "string",
+ "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
+ }, {
+ "type" : "null"
+ } ]
+ },
"model_id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
+ "disabled" : {
+ "type" : "boolean"
+ },
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3250,7 +3557,8 @@
} ]
}
},
- "required" : [ "name", "type", "model_id" ]
+ "required" : [ "name", "type", "model_id" ],
+ "additionalProperties" : false
} ]
},
"metabase.actions.schema..action.for-update" : {
@@ -3260,7 +3568,9 @@
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
}, {
"type" : "null"
} ]
@@ -3272,6 +3582,13 @@
"type" : "null"
} ]
},
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"parameter_mappings" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
@@ -3282,12 +3599,34 @@
"id" : {
"$ref" : "#/components/schemas/metabase.actions.schema.id"
},
+ "made_public_by_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"type" : "string"
},
"archived" : {
"type" : "boolean"
},
+ "database_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"type" : {
"$ref" : "#/components/schemas/metabase.actions.schema.type"
},
@@ -3305,12 +3644,42 @@
"type" : "null"
} ]
},
+ "created_at" : { },
+ "public_uuid" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid UUID.",
+ "type" : "string",
+ "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
+ }, {
+ "type" : "null"
+ } ]
+ },
"model_id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
+ "disabled" : {
+ "type" : "boolean"
+ },
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3322,13 +3691,23 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3343,12 +3722,34 @@
"id" : {
"$ref" : "#/components/schemas/metabase.actions.schema.id"
},
+ "made_public_by_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"type" : "string"
},
"archived" : {
"type" : "boolean"
},
+ "database_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"kind" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.actions.schema..implicit-action.kind"
@@ -3359,12 +3760,39 @@
"type" : {
"$ref" : "#/components/schemas/metabase.actions.schema.type"
},
+ "created_at" : { },
+ "public_uuid" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid UUID.",
+ "type" : "string",
+ "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
+ }, {
+ "type" : "null"
+ } ]
+ },
"model_id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3376,13 +3804,23 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3404,6 +3842,13 @@
"id" : {
"$ref" : "#/components/schemas/metabase.actions.schema.id"
},
+ "made_public_by_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"type" : "string"
},
@@ -3417,15 +3862,50 @@
"type" : "null"
} ]
},
+ "updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"type" : {
"$ref" : "#/components/schemas/metabase.actions.schema.type"
},
+ "created_at" : { },
+ "public_uuid" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid UUID.",
+ "type" : "string",
+ "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
+ }, {
+ "type" : "null"
+ } ]
+ },
"model_id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3437,13 +3917,16 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
}, {
"type" : "null"
} ]
@@ -3455,6 +3938,13 @@
"type" : "null"
} ]
},
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"dataset_query" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-or-empty-query"
@@ -3472,6 +3962,13 @@
"id" : {
"$ref" : "#/components/schemas/metabase.actions.schema.id"
},
+ "made_public_by_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"type" : "string"
},
@@ -3485,6 +3982,14 @@
"type" : "null"
} ]
},
+ "updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"kind" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.actions.schema..implicit-action.kind"
@@ -3509,12 +4014,42 @@
"type" : "null"
} ]
},
+ "created_at" : { },
+ "public_uuid" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid UUID.",
+ "type" : "string",
+ "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
+ }, {
+ "type" : "null"
+ } ]
+ },
"model_id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
+ "disabled" : {
+ "type" : "boolean"
+ },
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3526,13 +4061,177 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
} ]
},
+ "metabase.actions.schema..action.parameter" : {
+ "description" : "parameter must be a map with :id and :type keys",
+ "type" : "object",
+ "properties" : {
+ "metabase.actions.models/field-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "filteringParameters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "mappings" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
+ }
+ }, {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
+ },
+ "uniqueItems" : true
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "sectionId" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "values_source_config" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.values-source-config"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "hasVariableTemplateTagTarget" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "display-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
+ },
+ "position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "slug" : {
+ "type" : "string"
+ },
+ "value" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ },
+ "metabase.actions.models/pk?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "required" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "values_query_type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.values-query-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.type"
+ },
+ "temporal_units" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "is-auto-increment" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
+ },
+ "values_source_type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.values-source-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "options" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.options"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ },
+ "isMultiSelect" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id", "type" ],
+ "additionalProperties" : false
+ },
"metabase.actions.schema..execute-parameter-values.string-keys" : {
"description" : "value must map parameter ids to scalar values.",
"type" : "object",
- "additionalProperties" : { }
+ "additionalProperties" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value.scalar"
+ }, {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value.scalar"
+ }
+ } ]
+ }
},
"metabase.actions.schema..http-action.json-query" : {
"description" : "must be a valid json-query, something like '.item.title'",
@@ -3585,7 +4284,9 @@
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
}, {
"type" : "null"
} ]
@@ -3597,6 +4298,13 @@
"type" : "null"
} ]
},
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"parameter_mappings" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
@@ -3607,6 +4315,13 @@
"id" : {
"$ref" : "#/components/schemas/metabase.actions.schema.id"
},
+ "creator" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.users.schema.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"made_public_by_id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.user"
@@ -3620,7 +4335,21 @@
"archived" : {
"type" : "boolean"
},
+ "database_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
"updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"type" : {
"$ref" : "#/components/schemas/metabase.actions.schema.type"
},
@@ -3651,9 +4380,15 @@
"model_id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
+ "disabled" : {
+ "type" : "boolean"
+ },
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
}, {
"type" : "null"
} ]
@@ -3665,6 +4400,13 @@
"type" : "null"
} ]
},
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"description" : {
"oneOf" : [ {
"type" : "string"
@@ -3673,13 +4415,23 @@
} ]
}
},
- "required" : [ "id" ]
+ "required" : [ "id" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3694,6 +4446,13 @@
"id" : {
"$ref" : "#/components/schemas/metabase.actions.schema.id"
},
+ "creator" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.users.schema.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"made_public_by_id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.user"
@@ -3707,7 +4466,21 @@
"archived" : {
"type" : "boolean"
},
+ "database_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
"updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"kind" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.actions.schema..implicit-action.kind"
@@ -3733,7 +4506,10 @@
},
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
}, {
"type" : "null"
} ]
@@ -3745,6 +4521,13 @@
"type" : "null"
} ]
},
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"description" : {
"oneOf" : [ {
"type" : "string"
@@ -3753,13 +4536,23 @@
} ]
}
},
- "required" : [ "id" ]
+ "required" : [ "id" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
}, {
"type" : "null"
} ]
@@ -3781,6 +4574,13 @@
"id" : {
"$ref" : "#/components/schemas/metabase.actions.schema.id"
},
+ "creator" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.users.schema.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"made_public_by_id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.user"
@@ -3802,6 +4602,13 @@
} ]
},
"updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"type" : {
"$ref" : "#/components/schemas/metabase.actions.schema.type"
},
@@ -3820,8 +4627,11 @@
},
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
- }, {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
+ }, {
"type" : "null"
} ]
},
@@ -3832,6 +4642,13 @@
"type" : "null"
} ]
},
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"description" : {
"oneOf" : [ {
"type" : "string"
@@ -3840,13 +4657,16 @@
} ]
}
},
- "required" : [ "id" ]
+ "required" : [ "id" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"visualization_settings" : {
"oneOf" : [ {
- "type" : "object"
+ "description" : "Value must be a map.",
+ "type" : "object",
+ "properties" : { }
}, {
"type" : "null"
} ]
@@ -3858,6 +4678,13 @@
"type" : "null"
} ]
},
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"dataset_query" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-or-empty-query"
@@ -3875,6 +4702,13 @@
"id" : {
"$ref" : "#/components/schemas/metabase.actions.schema.id"
},
+ "creator" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.users.schema.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
"made_public_by_id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.user"
@@ -3896,6 +4730,13 @@
} ]
},
"updated_at" : { },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"kind" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.actions.schema..implicit-action.kind"
@@ -3933,9 +4774,15 @@
"model_id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
+ "disabled" : {
+ "type" : "boolean"
+ },
"parameters" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.actions.schema..action.parameter"
+ }
}, {
"type" : "null"
} ]
@@ -3947,6 +4794,13 @@
"type" : "null"
} ]
},
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"description" : {
"oneOf" : [ {
"type" : "string"
@@ -3955,13 +4809,23 @@
} ]
}
},
- "required" : [ "id" ]
+ "required" : [ "id" ],
+ "additionalProperties" : false
} ]
},
"metabase.actions.schema.execute-parameter-values" : {
"description" : "value must map parameter ids to scalar values.",
"type" : "object",
- "additionalProperties" : { }
+ "additionalProperties" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value.scalar"
+ }, {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value.scalar"
+ }
+ } ]
+ }
},
"metabase.actions.schema.id" : {
"description" : "Valid Action ID",
@@ -3971,7 +4835,9 @@
"metabase.actions.schema.prefetch-parameter-values" : {
"description" : "value must be a JSON object mapping parameter ids to scalar values.",
"type" : "object",
- "additionalProperties" : { }
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value.scalar"
+ }
},
"metabase.actions.schema.type" : {
"description" : "Unsupported action type",
@@ -3979,98 +4845,68 @@
"enum" : [ "http", "implicit", "query" ]
},
"metabase.actions.types..scope.raw" : {
- "anyOf" : [ {
- "type" : "object",
- "properties" : {
- "dashboard-id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "type" : {
- "type" : "string"
- }
+ "type" : "object",
+ "properties" : {
+ "webhook-id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "required" : [ "dashboard-id" ]
- }, {
- "type" : "object",
- "properties" : {
- "dashcard-id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "type" : {
- "type" : "string"
- }
+ "model-id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "required" : [ "dashcard-id" ]
- }, {
- "type" : "object",
- "properties" : {
- "card-id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "type" : {
- "type" : "string"
- }
+ "database-id" : {
+ "$ref" : "#/components/schemas/metabase.actions.types.fk-or-missing-id"
},
- "required" : [ "card-id" ]
- }, {
- "type" : "object",
- "properties" : {
- "model-id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "type" : {
- "type" : "string"
- }
+ "dashcard-id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "required" : [ "model-id" ]
- }, {
- "type" : "object",
- "properties" : {
- "table-id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "type" : {
- "type" : "string"
- }
+ "table-id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "required" : [ "table-id" ]
- }, {
- "type" : "object",
- "properties" : {
- "type" : {
- "type" : "string"
- },
- "webhook-id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }
+ "card-id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "required" : [ "webhook-id" ]
- }, {
- "type" : "object",
- "properties" : {
- "type" : {
- "type" : "string"
- },
- "unknown" : {
- "type" : "string",
- "enum" : [ "model-action" ]
- }
+ "collection-id" : {
+ "$ref" : "#/components/schemas/metabase.actions.types.fk-or-missing-id"
+ },
+ "dashboard-id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "required" : [ "unknown" ]
+ "unknown" : {
+ "type" : "string",
+ "enum" : [ "model-action" ]
+ },
+ "type" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false
+ },
+ "metabase.actions.types.fk-or-missing-id" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.actions.types.missing-id"
+ }, {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
} ]
},
+ "metabase.actions.types.missing-id" : {
+ "type" : "integer",
+ "minimum" : -1,
+ "maximum" : -1
+ },
"metabase.agent-api.api.card-display" : {
"description" : "Display types accepted by Card. Validates LLM-passed values so a bogus\n value (e.g. `\"potato\"`) gets a 400 rather than persisting junk.",
"type" : "string",
@@ -4117,7 +4953,7 @@
"additionalProperties" : false
},
"metabase.agent-api.api.construct-query-request" : {
- "description" : "Request body for /v2/construct-query and the fresh-query branch of /v2/query.\n A single `:query` key whose value is a JSON object matching\n [[metabase.lib.schema/external-query]] — the canonical portable MBQL 5 wire format. The\n query is fully self-describing: the database is derived from the first stage's\n `source-table:` or `source-card:`, all field references are portable FKs\n (`[<db-name>, <schema>, <table-name>, <column-name>]`), and there is no auxiliary\n `source_entity` / `referenced_entities` envelope. See\n `resources/metabot/prompts/tools/construct_notebook_query.md` for the full format reference\n (including operators, joins, expressions, multi-stage queries, and FK conventions).\n\n Closed map: any extra top-level keys (notably the legacy `source_entity` /\n `referenced_entities` envelope from before the repr migration) are dropped during request\n decoding, so a caller still sending the old shape is served.\n\n The inner `:query` value is intentionally typed as an open map ([[ms/Map]]) at this boundary\n rather than `::lib.schema/external-query`. Being open matters: a closed map with no declared\n entries would have every key stripped before the handler saw it. Reasons for not naming the\n real schema:\n\n 1. Deep MBQL-shape validation runs inside the representations pipeline\n (`metabot.tools.construct/execute-representations-query` calls `repr/validate-query`\n after the repair pass), so the boundary check would be redundant.\n\n 2. The strict-tool manifest lint (`assert-optional-fields-nullable!`) walks every map\n reachable from the tool input schema. `::external-query` references `::query`, which\n carries several `:optional` keys (`:lib/metadata`, `:database`, `:settings`, …) that\n are not `[:maybe ...]` — for sound reasons unrelated to this endpoint. Recursing into\n them would force a wide schema change just to satisfy the lint at the agent boundary.",
+ "description" : "Request body for /v2/construct-query and the fresh-query branch of /v2/query.\n A single `:query` key whose value is a JSON object matching\n [[metabase.lib.schema/external-query]] — the canonical portable MBQL 5 wire format. The\n query is fully self-describing: the database is derived from the first stage's\n `source-table:` or `source-card:`, all field references are portable FKs\n (`[<db-name>, <schema>, <table-name>, <column-name>]`), and there is no auxiliary\n `source_entity` / `referenced_entities` envelope. See\n `resources/metabot/prompts/tools/construct_notebook_query.md` for the full format reference\n (including operators, joins, expressions, multi-stage queries, and FK conventions).\n\n Closed map: any extra top-level keys (notably the legacy `source_entity` /\n `referenced_entities` envelope from before the repr migration) are dropped during request\n decoding, so a caller still sending the old shape is served.\n\n The inner `:query` value is an opaque, string-keyed JSON object ([[ms/OpaqueJSONObject]]) at this boundary\n rather than `::lib.schema/external-query`. Being open matters: a closed map with no declared\n entries would have every key stripped before the handler saw it. Reasons for not naming the\n real schema:\n\n 1. Deep MBQL-shape validation runs inside the representations pipeline\n (`metabot.tools.construct/execute-representations-query` calls `repr/validate-query`\n after the repair pass), so the boundary check would be redundant.\n\n 2. The strict-tool manifest lint (`assert-optional-fields-nullable!`) walks every map\n reachable from the tool input schema. `::external-query` references `::query`, which\n carries several `:optional` keys (`:lib/metadata`, `:database`, `:settings`, …) that\n are not `[:maybe ...]` — for sound reasons unrelated to this endpoint. Recursing into\n them would force a wide schema change just to satisfy the lint at the agent boundary.",
"type" : "object",
"properties" : {
"prompt" : {
@@ -4131,8 +4967,12 @@
},
"query" : {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}
},
"required" : [ "query" ],
@@ -4182,7 +5022,8 @@
} ]
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
},
"metabase.agent-api.api.create-collection-response" : {
"description" : "Returned by `create_collection`. Exposes the materialized-path `:location` so callers\n can sanity-check nesting without a follow-up read.",
@@ -4256,7 +5097,8 @@
} ]
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
},
"metabase.agent-api.api.create-dashboard-response" : {
"type" : "object",
@@ -4353,7 +5195,8 @@
} ]
}
},
- "required" : [ "name", "query" ]
+ "required" : [ "name", "query" ],
+ "additionalProperties" : false
},
"metabase.agent-api.api.create-metric-response" : {
"type" : "object",
@@ -4439,7 +5282,8 @@
} ]
}
},
- "required" : [ "name", "query" ]
+ "required" : [ "name", "query" ],
+ "additionalProperties" : false
},
"metabase.agent-api.api.create-question-response" : {
"type" : "object",
@@ -4644,7 +5488,8 @@
"minLength" : 1
}
},
- "required" : [ "query" ]
+ "required" : [ "query" ],
+ "additionalProperties" : false
},
"metabase.agent-api.api.execute-query-response" : {
"description" : "Response from query execution. The HTTP status is always 202 because results are streamed —\n check the `status` field to determine success or failure.",
@@ -4699,7 +5544,8 @@
"minLength" : 1
}
},
- "required" : [ "database_id", "sql" ]
+ "required" : [ "database_id", "sql" ],
+ "additionalProperties" : false
},
"metabase.agent-api.api.query-request" : {
"description" : "Request body for /v2/query, one of three shapes:\n - `{:continuation_token <string>}` from a prior response (pagination);\n - `{:query <base64-string>}` — a query_handle resolved by the MCP layer to its stored base64\n MBQL; already resolved, so it's executed directly (like /v1/execute) rather than re-run\n through the representations pipeline;\n - `{:query <external-query-object>}` — a fresh portable MBQL 5 payload, same shape as\n /v2/construct-query.\n\n The string-vs-object `:query` distinction is what the `:dispatch` keys on. Each branch is a\n closed map, so top-level keys it doesn't declare (e.g. the legacy `source_entity` /\n `referenced_entities` envelope, or a `:query` sent alongside a `:continuation_token`) are\n dropped before the handler runs.",
@@ -4808,7 +5654,8 @@
}
}
},
- "required" : [ "uris" ]
+ "required" : [ "uris" ],
+ "additionalProperties" : false
},
"metabase.agent-api.api.read-resource-response" : {
"description" : "Response shape from /v1/read-resource. `:resources` is the per-URI result list;\n `:output` is the formatted XML string the LLM consumes.",
@@ -4971,7 +5818,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.agent-api.api.update-dashboard-response" : {
"description" : "Returned by `update_dashboard`. `:dashcard_ids` is the post-mutation list of dashcard\n ids in row/col order so the LLM can confirm what landed on the dashboard. `:tabs` lists\n the dashboard's tabs in display order — the ids a mutation's `tab_id` accepts.",
@@ -5084,7 +5932,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.agent-api.api.update-metric-response" : {
"description" : "Returned by `update_metric` - the fields the LLM is most likely to want to read back\n after an update. Excludes the full dataset_query, which the caller can re-fetch via\n `read_resource` if needed.",
@@ -5186,7 +6035,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.agent-api.api.update-question-response" : {
"description" : "Returned by `update_question` - the fields the LLM is most likely to want to read back\n after an update. Excludes the full dataset_query, which the caller can re-fetch via\n `read_resource` if needed.",
@@ -5273,6 +6123,7 @@
} ]
},
"metabase.cache.api..cache-strategy.ee.duration" : {
+ "description" : "Cache for a fixed duration (EE).",
"type" : "object",
"properties" : {
"duration" : {
@@ -5299,6 +6150,7 @@
"additionalProperties" : false
},
"metabase.cache.api..cache-strategy.ee.schedule" : {
+ "description" : "Cache until the next run of a cron schedule (EE).",
"type" : "object",
"properties" : {
"refresh_automatically" : {
@@ -5309,7 +6161,9 @@
} ]
},
"schedule" : {
- "$ref" : "#/components/schemas/metabase.util.cron.CronScheduleString"
+ "description" : "value must be a valid Quartz cron schedule string.",
+ "type" : "string",
+ "minLength" : 1
},
"type" : {
"const" : "schedule"
@@ -5319,20 +6173,7 @@
"additionalProperties" : false
},
"metabase.cache.api..cache-strategy.nocache" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
- },
- "type" : {
- "const" : "nocache"
- }
- },
- "required" : [ "type" ]
+ "$ref" : "#/components/schemas/metabase.lib.schema..cache-strategy.nocache"
},
"metabase.cache.api..cache-strategy.oss" : {
"description" : "cache strategy :type must be one of :nocache, :ttl",
@@ -5343,6 +6184,7 @@
} ]
},
"metabase.cache.api..cache-strategy.ttl" : {
+ "description" : "Cache for a multiple of the query's average execution time. Typed as plain numbers here: a strategy reaches a query\n from several places (the Card, a Dashboard, the Database), and `metabase.cache.api` is the one that asks for integers.",
"type" : "object",
"properties" : {
"min_duration_ms" : {
@@ -5504,41 +6346,283 @@
} ]
},
"metabase.channel.models.channel.Channel" : {
- "description" : "Channel schema.",
- "type" : "object",
- "properties" : {
- "active" : {
- "type" : "boolean"
- },
- "description" : {
- "oneOf" : [ {
+ "description" : "[[details-by-type]] as a schema, for the row schemas below.",
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "active" : {
+ "type" : "boolean"
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "details" : {
+ "$ref" : "#/components/schemas/metabase.channel.schema.http-details"
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "name" : {
"type" : "string"
- }, {
- "type" : "null"
- } ]
+ },
+ "type" : {
+ "type" : "string"
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
},
- "details" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "required" : [ "name", "type", "details" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "active" : {
+ "type" : "boolean"
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "details" : {
+ "$ref" : "#/components/schemas/metabase.channel.schema.slack-details"
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "type" : "string"
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
},
- "name" : {
- "type" : "string"
+ "required" : [ "name", "type", "details" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "active" : {
+ "type" : "boolean"
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "details" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.schema.email-details"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "type" : "string"
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
},
- "type" : {
- "type" : "string"
- }
- },
- "required" : [ "name", "type", "details" ]
+ "required" : [ "name", "type" ],
+ "additionalProperties" : false
+ } ]
},
"metabase.channel.models.channel.ChannelTemplate" : {
"description" : "Channel Template schema.",
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "channel_type" : { },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "details" : {
+ "$ref" : "#/components/schemas/metabase.channel.schema..channel-template.email-details"
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "name" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "channel_type", "details" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "channel_type" : { },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "details" : {
+ "type" : "null"
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "name" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "channel_type" ],
+ "additionalProperties" : false
+ } ]
+ },
+ "metabase.channel.models.channel.ChannelTemplateUserProvided" : {
+ "description" : "Channel Template schema for API-provided templates. Does not allow handlebars-resource.",
"oneOf" : [ {
"type" : "object",
"properties" : {
"channel_type" : { },
"details" : {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateEmailDetails"
+ "$ref" : "#/components/schemas/metabase.channel.schema..channel-template.email-details.user-provided"
},
"id" : {
"description" : "value must be an integer greater than zero.",
@@ -5550,7 +6634,8 @@
"minLength" : 1
}
},
- "required" : [ "channel_type", "details" ]
+ "required" : [ "channel_type", "details" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -5565,10 +6650,12 @@
"minLength" : 1
}
},
- "required" : [ "channel_type" ]
+ "required" : [ "channel_type" ],
+ "additionalProperties" : false
} ]
},
- "metabase.channel.models.channel.ChannelTemplateEmailDetails" : {
+ "metabase.channel.schema..channel-template.email-details" : {
+ "description" : "The `:details` of a `:channel/email` ChannelTemplate.",
"oneOf" : [ {
"type" : "object",
"properties" : {
@@ -5585,7 +6672,8 @@
"enum" : [ "email/handlebars-resource", "email/handlebars-text", "email/handlebars-resource", "email/handlebars-text" ]
}
},
- "required" : [ "type", "subject", "path" ]
+ "required" : [ "type", "subject", "path" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -5602,11 +6690,12 @@
"enum" : [ "email/handlebars-resource", "email/handlebars-text", "email/handlebars-resource", "email/handlebars-text" ]
}
},
- "required" : [ "type", "subject", "body" ]
+ "required" : [ "type", "subject", "body" ],
+ "additionalProperties" : false
} ]
},
- "metabase.channel.models.channel.ChannelTemplateEmailDetailsUserProvided" : {
- "description" : "Email template details schema for API-provided templates. Only handlebars-text is allowed;\n handlebars-resource is restricted to internal use only.",
+ "metabase.channel.schema..channel-template.email-details.user-provided" : {
+ "description" : "Email template details as the API accepts them. Only an inline Handlebars template is allowed; a resource template is\n for internal use.",
"type" : "object",
"properties" : {
"body" : {
@@ -5622,56 +6711,115 @@
"enum" : [ "email/handlebars-text", "email/handlebars-text" ]
}
},
- "required" : [ "type", "subject", "body" ]
+ "required" : [ "type", "subject", "body" ],
+ "additionalProperties" : false
},
- "metabase.channel.models.channel.ChannelTemplateUserProvided" : {
- "description" : "Channel Template schema for API-provided templates. Does not allow handlebars-resource.",
+ "metabase.channel.schema..channel.details" : {
+ "description" : "The `:details` column of a Channel, decoded, when the channel's `:type` is not at hand to pick the schema by. Decoding\n an `:or` keeps the first branch the value satisfies once decoded, and the request decoder strips undeclared keys, so\n the branches run from the most to the least demanding: the empty `::email-details` would swallow anything.",
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.schema.slack-details"
+ }, {
+ "$ref" : "#/components/schemas/metabase.channel.schema.http-details"
+ }, {
+ "$ref" : "#/components/schemas/metabase.channel.schema.email-details"
+ } ]
+ },
+ "metabase.channel.schema..channel.details-by-type" : {
+ "description" : "[[details-by-type]] as a schema, for the row schemas below.",
"oneOf" : [ {
"type" : "object",
"properties" : {
- "channel_type" : { },
"details" : {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateEmailDetailsUserProvided"
- },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "name" : {
- "type" : "string",
- "minLength" : 1
+ "$ref" : "#/components/schemas/metabase.channel.schema.http-details"
}
},
- "required" : [ "channel_type", "details" ]
+ "required" : [ "details" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
- "channel_type" : { },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "name" : {
- "type" : "string",
- "minLength" : 1
+ "details" : {
+ "$ref" : "#/components/schemas/metabase.channel.schema.slack-details"
+ }
+ },
+ "required" : [ "details" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "details" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.schema.email-details"
+ }, {
+ "type" : "null"
+ } ]
}
},
- "required" : [ "channel_type" ]
+ "additionalProperties" : false
} ]
},
- "metabase.collections-rest.api.Collection" : {
- "description" : "A Collection as the REST API returns it. Deliberately open: which hydrated keys come back varies by endpoint and\n by what the Collection is. `POST /` returns the freshly inserted row with no permission flags; `/root` describes a\n virtual Collection with a string id and none of the database-backed columns; `/tree` nests `:children`. Only `:id`\n and `:name` are present in every case, so only those are required here.",
+ "metabase.channel.schema.email-details" : {
+ "description" : "The connection `:details` of a `:channel/email` channel: there are none, email is configured by settings.",
+ "type" : "object",
+ "properties" : { },
+ "additionalProperties" : false
+ },
+ "metabase.channel.schema.http-details" : {
+ "description" : "The connection `:details` of a `:channel/http` channel.",
"type" : "object",
"properties" : {
- "id" : {
- "$ref" : "#/components/schemas/metabase.collections-rest.api.CollectionId"
- },
- "name" : {
- "anyOf" : [ {
- "type" : "string"
- }, {
+ "auth-info" : {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ },
+ "auth-method" : {
+ "type" : "string",
+ "enum" : [ "none", "header", "query-param", "request-body" ]
+ },
+ "fe-form-type" : {
+ "type" : "string",
+ "enum" : [ "api-key", "bearer", "basic", "none" ]
+ },
+ "method" : {
+ "type" : "string",
+ "enum" : [ "get", "post", "put" ]
+ },
+ "url" : {
+ "description" : "value must be a valid URL."
+ }
+ },
+ "required" : [ "url", "auth-method" ],
+ "additionalProperties" : false
+ },
+ "metabase.channel.schema.slack-details" : {
+ "description" : "The connection `:details` of a `:channel/slack` channel.",
+ "type" : "object",
+ "properties" : {
+ "channel" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "channel" ],
+ "additionalProperties" : false
+ },
+ "metabase.collections-rest.api.Collection" : {
+ "description" : "A Collection as the REST API returns it. Deliberately open: which hydrated keys come back varies by endpoint and\n by what the Collection is. `POST /` returns the freshly inserted row with no permission flags; `/root` describes a\n virtual Collection with a string id and none of the database-backed columns; `/tree` nests `:children`. Only `:id`\n and `:name` are present in every case, so only those are required here.",
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "$ref" : "#/components/schemas/metabase.collections-rest.api.CollectionId"
+ },
+ "name" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
"anyOf" : [ { }, { } ]
} ]
}
@@ -6188,6 +7336,184 @@
},
"required" : [ "id", "email", "first_name", "last_name", "timestamp" ]
},
+ "metabase.collections.schema.collection" : {
+ "description" : "A Collection as selected from the app DB: every column of `:collection`.",
+ "type" : "object",
+ "properties" : {
+ "archive_operation_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "type" : "string"
+ },
+ "authority_level" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "is_sample" : {
+ "type" : "boolean"
+ },
+ "id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
+ },
+ "is_remote_synced" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "slug" : {
+ "type" : "string"
+ },
+ "archived" : {
+ "type" : "boolean"
+ },
+ "location" : {
+ "type" : "string"
+ },
+ "type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "created_at" : {
+ "type" : "string",
+ "format" : "date-time"
+ },
+ "namespace" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "personal_owner_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "archived_directly" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id", "name", "description", "archived", "location", "personal_owner_id", "slug", "namespace", "authority_level", "entity_id", "created_at", "type", "is_sample", "archive_operation_id", "archived_directly", "is_remote_synced" ],
+ "additionalProperties" : false
+ },
+ "metabase.comments.schema..prose-mirror-node.attrs" : {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ],
+ "type" : "object",
+ "properties" : {
+ "entityId" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "label" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "level" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "model" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ }
+ },
+ "metabase.comments.schema.prose-mirror-node" : {
+ "description" : "One node of the ProseMirror/TipTap document a comment is written in, in the shape ProseMirror's `Node.toJSON`\n emits: a `:type`, the children it contains, the marks applied to it, and `:text` on text nodes. Those five keys are\n the whole of the ProseMirror JSON node format; `:attrs` varies by node type. Marks are nodes too as far as this\n schema is concerned -- a mark carries only `:type` and `:attrs`, which is a subset of a node.",
+ "type" : "object",
+ "properties" : {
+ "attrs" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.comments.schema..prose-mirror-node.attrs"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "content" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.comments.schema.prose-mirror-node"
+ }
+ },
+ "marks" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.comments.schema.prose-mirror-node"
+ }
+ },
+ "text" : {
+ "type" : "string"
+ },
+ "type" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ },
"metabase.data-studio.api.table.bulk-table-info" : {
"description" : "Schema for table info in bulk operations. Matches frontend BulkTableInfo type.",
"type" : "object",
@@ -6284,23 +7610,266 @@
"minimum" : 1
}
}
+ },
+ "additionalProperties" : false
+ },
+ "metabase.documents.prose-mirror..card-embed.explore-filter" : {
+ "description" : "One explore-further filter `metabase.explorations` snapshots onto a static card embed: the filter as the client\n sent it, plus the name of the dimension it is on. Its `:field_ref` is the legacy `field_ref` of the chart column\n that was clicked.",
+ "type" : "object",
+ "properties" : {
+ "dimension_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "display_value" : {
+ "type" : "string"
+ },
+ "field_ref" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..dimension.target"
+ },
+ "operator" : {
+ "type" : "string"
+ },
+ "value" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "values" : {
+ "type" : "array",
+ "prefixItems" : [ {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }, {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ } ]
+ }
+ },
+ "required" : [ "operator", "field_ref", "display_value" ],
+ "additionalProperties" : false
+ },
+ "metabase.documents.prose-mirror..card-embed.host-data" : {
+ "description" : "What `metabase.explorations` writes under `:host_data` of a static card embed so the frontend can render the\n embed's filter pills and hover highlights without a live lookup.",
+ "type" : "object",
+ "properties" : {
+ "explore_filters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.documents.prose-mirror..card-embed.explore-filter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query_ids" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ },
+ "metabase.documents.prose-mirror..node.attrs" : {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ],
+ "type" : "object",
+ "properties" : {
+ "model" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "stored_result_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "label" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "chart_href" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "_id" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string",
+ "format" : "uuid"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entityId" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "child_target_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "host_data" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.documents.prose-mirror..card-embed.host-data"
+ }, {
+ "type" : "null"
+ } ]
+ }
}
},
"metabase.documents.prose-mirror.ast" : {
- "description" : "Schema for a prose-mirror document AST as it arrives at the API.",
+ "description" : "Schema for a prose-mirror document AST as it arrives at the API or is read back from the application database: a\n node in the shape ProseMirror's `Node.toJSON` emits, whose children and marks are nodes too.",
"type" : "object",
"properties" : {
+ "attrs" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.documents.prose-mirror..node.attrs"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "content" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.documents.prose-mirror.ast"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "marks" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.documents.prose-mirror.ast"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "text" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"type" : {
"type" : "string"
}
},
- "required" : [ "type" ]
+ "required" : [ "type" ],
+ "additionalProperties" : false
},
"metabase.documents.schema..document.id" : {
"description" : "Valid Document ID",
"type" : "integer",
"minimum" : 1
},
+ "metabase.driver..native-query-deps.table-dep" : {
+ "type" : "object",
+ "properties" : {
+ "schema" : {
+ "type" : "string"
+ },
+ "table" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ }, {
+ "type" : "string"
+ } ]
+ }
+ },
+ "required" : [ "table" ],
+ "additionalProperties" : false
+ },
+ "metabase.driver..native-query-deps.transform-dep" : {
+ "type" : "object",
+ "properties" : {
+ "transform" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.transform"
+ }
+ },
+ "required" : [ "transform" ],
+ "additionalProperties" : false
+ },
"metabase.driver.connection.connection-type" : {
"type" : "string",
"enum" : [ "default", "write-data", "admin", "transform" ]
@@ -6366,6 +7935,20 @@
"$ref" : "#/components/schemas/metabase.driver.index-method"
}
},
+ "metabase.eid-translation.schema.entity-ids-by-model" : {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ },
"metabase.embedding-rest.api.theme.EmbeddingTheme" : {
"type" : "object",
"properties" : {
@@ -6385,8 +7968,12 @@
},
"settings" : {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
},
"updated_at" : { }
},
@@ -6456,8 +8043,7 @@
"minLength" : 1
},
"field_ref" : {
- "type" : "array",
- "items" : { }
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..dimension.target"
},
"operator" : {
"const" : "="
@@ -6476,7 +8062,8 @@
} ]
}
},
- "required" : [ "operator", "field_ref", "value", "display_value" ]
+ "required" : [ "operator", "field_ref", "value", "display_value" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -6492,8 +8079,7 @@
"minLength" : 1
},
"field_ref" : {
- "type" : "array",
- "items" : { }
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..dimension.target"
},
"operator" : {
"const" : "between"
@@ -6527,7 +8113,8 @@
} ]
}
},
- "required" : [ "operator", "field_ref", "values", "display_value" ]
+ "required" : [ "operator", "field_ref", "values", "display_value" ],
+ "additionalProperties" : false
} ]
}
}, {
@@ -7263,6 +8850,14 @@
},
"required" : [ "check_name", "health", "message", "run_at" ]
},
+ "metabase.indexed-entities.schema..model-index.pk-ref" : {
+ "description" : "The `:pk_ref` column of a ModelIndex, decoded.",
+ "type" : "array"
+ },
+ "metabase.indexed-entities.schema..model-index.value-ref" : {
+ "description" : "The `:value_ref` column of a ModelIndex, decoded.",
+ "type" : "array"
+ },
"metabase.indexes.schema.classical-index" : {
"description" : "Postgres / MySQL / SQL Server secondary index.",
"type" : "object",
@@ -7291,7 +8886,8 @@
"type" : "boolean"
}
},
- "required" : [ "kind", "name", "columns" ]
+ "required" : [ "kind", "name", "columns" ],
+ "additionalProperties" : false
},
"metabase.indexes.schema.clustering" : {
"description" : "Snowflake (standalone) / BigQuery (inline) clustering. `:name` is required for the standalone form.",
@@ -7311,7 +8907,8 @@
"$ref" : "#/components/schemas/metabase.indexes.schema.index-name"
}
},
- "required" : [ "kind", "columns" ]
+ "required" : [ "kind", "columns" ],
+ "additionalProperties" : false
},
"metabase.indexes.schema.column" : {
"type" : "object",
@@ -7324,7 +8921,8 @@
"$ref" : "#/components/schemas/metabase.indexes.schema.column-name"
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
},
"metabase.indexes.schema.column-name" : {
"type" : "string",
@@ -7351,7 +8949,8 @@
"enum" : [ "key", "all", "even" ]
}
},
- "required" : [ "kind", "style" ]
+ "required" : [ "kind", "style" ],
+ "additionalProperties" : false
},
"metabase.indexes.schema.index-name" : {
"description" : "Free-form user input, inlined (quoted and escaped) into DDL. 63 is the Postgres identifier limit, the tightest\n engine we support.",
@@ -7410,7 +9009,8 @@
"const" : "order-by"
}
},
- "required" : [ "kind", "columns" ]
+ "required" : [ "kind", "columns" ],
+ "additionalProperties" : false
},
"metabase.indexes.schema.skip-index" : {
"description" : "ClickHouse data-skipping index, standalone. Only arg-free types; the parameterized ones need type-args the form\n can't supply yet.",
@@ -7438,7 +9038,8 @@
"enum" : [ "minmax", "bloom_filter" ]
}
},
- "required" : [ "kind", "name", "columns", "type" ]
+ "required" : [ "kind", "name", "columns", "type" ],
+ "additionalProperties" : false
},
"metabase.indexes.schema.sortkey" : {
"description" : "Redshift sort key, inline.",
@@ -7459,7 +9060,8 @@
"enum" : [ "compound", "interleaved" ]
}
},
- "required" : [ "kind", "style", "columns" ]
+ "required" : [ "kind", "style", "columns" ],
+ "additionalProperties" : false
},
"metabase.legacy-mbql.schema..legacy-column-metadata.binning-info" : {
"type" : "object",
@@ -7470,6 +9072,12 @@
"binning_strategy" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
},
+ "max_value" : {
+ "type" : "number"
+ },
+ "min_value" : {
+ "type" : "number"
+ },
"num_bins" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
},
@@ -7477,11 +9085,26 @@
"$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
}
},
- "required" : [ "strategy" ]
+ "required" : [ "strategy" ],
+ "additionalProperties" : false
},
"metabase.legacy-mbql.schema..legacy-column-metadata.qualified-keys" : {
"type" : "object",
"properties" : {
+ "metabase.query-processor.pivot/idx" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "metabase.lib.underlying/original" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.snapshot"
+ },
+ "lib/original-join-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"metabase.lib.metadata.result-metadata/field-ref" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
@@ -7489,6 +9112,9 @@
"type" : "null"
} ]
},
+ "metabase.lib.metadata.result-metadata/remove-join-alias?" : {
+ "type" : "boolean"
+ },
"lib/external-remap" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
@@ -7496,6 +9122,13 @@
"type" : "null"
} ]
},
+ "metabase.driver.mongo.query-processor/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-column-alias" : {
"oneOf" : [ {
"description" : "Name for a column as returned/projected by the previous stage of the query or source Table/source Card. The\n left-hand side (LHS) of\n\n SELECT lhs AS rhs",
@@ -7523,6 +9156,13 @@
"type" : "null"
} ]
},
+ "metabase.driver.mongo.query-processor/join-field" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"qp/implicit-field?" : {
"oneOf" : [ {
"type" : "boolean"
@@ -7537,6 +9177,25 @@
"type" : "null"
} ]
},
+ "dimension/id" : {
+ "oneOf" : [ {
+ "description" : "Valid Dimension ID",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.underlying/binning" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.join/target" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.snapshot"
+ },
"lib/deduplicated-name" : {
"description" : "The simply-deduplicated name that was historically used in QP results metadata (originally calculated by\n the [[metabase.query-processor.middleware.annotate]] middleware, now calculated\n by [[metabase.lib.middleware.result-metadata]]). This just adds suffixes to column names e.g. `ID` and `ID` become\n `ID` and `ID_2`, respectively. Kept around because many old field refs use this column name.",
"oneOf" : [ {
@@ -7552,6 +9211,16 @@
"type" : "null"
} ]
},
+ "values/values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-expression-name" : {
"oneOf" : [ {
"type" : "string",
@@ -7567,6 +9236,21 @@
"type" : "null"
} ]
},
+ "lib/original-fk-join-alias" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "minLength" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/original-fk-field-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/card-id" : {
"oneOf" : [ {
"description" : "Valid Card ID",
@@ -7576,6 +9260,13 @@
"type" : "null"
} ]
},
+ "metabase.lib.underlying/temporal-unit" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/expression-name" : {
"oneOf" : [ {
"type" : "string",
@@ -7591,6 +9282,16 @@
"type" : "null"
} ]
},
+ "values/human-readable-values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-effective-type" : {
"oneOf" : [ {
"type" : "string"
@@ -7606,9 +9307,41 @@
"type" : "null"
} ]
},
+ "lib/source-display-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension/human-readable-field-id" : {
+ "oneOf" : [ {
+ "description" : "Valid Field ID",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/original-fk-field-id" : {
+ "oneOf" : [ {
+ "description" : "Valid Field ID",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
"qp/native-sandbox-column.propagate-coercion?" : {
"type" : "boolean"
},
+ "metabase.lib.join/HACK-from-incomplete-join?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/internal-remap" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
@@ -7616,31 +9349,70 @@
"type" : "null"
} ]
},
+ "lib/options" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.lib-options"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-binning" : {
"oneOf" : [ {
"description" : "Schema for `:binning` options passed to a `:field` clause.",
"oneOf" : [ {
"type" : "object",
"properties" : {
+ "bin-width" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
+ },
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
+ "num-bins" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
+ },
"strategy" : {
"const" : "default"
}
},
- "required" : [ "strategy" ]
+ "required" : [ "strategy" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"bin-width" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
},
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
+ "num-bins" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
+ },
"strategy" : {
"const" : "bin-width"
}
},
- "required" : [ "strategy", "bin-width" ]
+ "required" : [ "strategy", "bin-width" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
+ "bin-width" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
+ },
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
"num-bins" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
},
@@ -7648,7 +9420,8 @@
"const" : "num-bins"
}
},
- "required" : [ "strategy", "num-bins" ]
+ "required" : [ "strategy", "num-bins" ],
+ "additionalProperties" : false
} ]
}, {
"type" : "null"
@@ -7669,6 +9442,9 @@
"type" : "null"
} ]
},
+ "metabase.lib.field.resolution/fallback-metadata?" : {
+ "type" : "boolean"
+ },
"qp/native-sandbox-column.force-coercion-strategy" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
},
@@ -7678,25 +9454,57 @@
"oneOf" : [ {
"type" : "object",
"properties" : {
+ "bin-width" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
+ },
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
+ "num-bins" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
+ },
"strategy" : {
"const" : "default"
}
},
- "required" : [ "strategy" ]
+ "required" : [ "strategy" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"bin-width" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
},
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
+ "num-bins" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
+ },
"strategy" : {
"const" : "bin-width"
}
},
- "required" : [ "strategy", "bin-width" ]
+ "required" : [ "strategy", "bin-width" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
+ "bin-width" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
+ },
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
"num-bins" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
},
@@ -7704,7 +9512,8 @@
"const" : "num-bins"
}
},
- "required" : [ "strategy", "num-bins" ]
+ "required" : [ "strategy", "num-bins" ],
+ "additionalProperties" : false
} ]
}, {
"type" : "null"
@@ -7731,6 +9540,14 @@
"type" : "null"
} ]
},
+ "dimension/type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "internal", "external" ]
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-name" : {
"description" : "The original name of the column as it appeared in the very first place it came from (i.e., the physical name of the\n column in the table it appears in). This should be the same as the `:lib/source-column-alias` for the very first\n usage of the column.\n Allowed to be blank because some databases like SQL Server allow blank column names.",
"oneOf" : [ {
@@ -7739,6 +9556,24 @@
"type" : "null"
} ]
},
+ "lib/original-ref-style-for-result-metadata-purposes" : {
+ "type" : "string",
+ "enum" : [ "original-ref-style/id", "original-ref-style/name" ]
+ },
+ "metabase.driver.mongo.query-processor/inherited?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension/name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/simple-display-name" : {
"oneOf" : [ {
"type" : "string",
@@ -7758,17 +9593,32 @@
}
},
"metabase.legacy-mbql.schema.AggregationRefOptions" : {
+ "description" : "Options for a legacy `:aggregation` ref in MBQL 4 are the same as in MBQL 5, except that `:lib/uuid` is optional and\n the map cannot be empty.",
+ "default" : { },
"type" : "object",
"properties" : {
- "base-type" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
+ "database-type" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
}, {
"type" : "null"
} ]
},
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
"display-name" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ "type" : "string",
+ "minLength" : 1
},
"effective-type" : {
"oneOf" : [ {
@@ -7777,10 +9627,100 @@
"type" : "null"
} ]
},
+ "base-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
+ "lib/uuid" : {
+ "type" : "string",
+ "minLength" : 36,
+ "maxLength" : 36
+ },
"name" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "lib/expression-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "case-sensitive" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/source-name" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
+ "join-alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
+ "include-current" : {
+ "type" : "boolean"
+ },
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
+ "semantic-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.legacy-mbql.schema.ExpressionName" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -7790,6 +9730,12 @@
"default" : { },
"type" : "object",
"properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
"database-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -7797,6 +9743,12 @@
"type" : "null"
} ]
},
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
"display-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -7818,6 +9770,15 @@
"type" : "null"
} ]
},
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
"lib/uuid" : {
"type" : "string",
"minLength" : 36,
@@ -7833,26 +9794,77 @@
"lib/expression-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
"case-sensitive" : {
"type" : "boolean"
},
+ "lib/original-effective-type" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
+ },
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
+ "join-alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
"include-current" : {
"type" : "boolean"
},
"temporal-unit" : {
"$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
},
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
}, {
"type" : "null"
} ]
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.legacy-mbql.schema.FieldRefOptions" : {
"description" : "Options for an MBQL 4 `:field` ref are the same as MBQL 5, except that `:lib/uuid` is not required and it cannot be\n empty.",
@@ -7861,6 +9873,12 @@
"default" : { },
"type" : "object",
"properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
"binning" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
},
@@ -7874,6 +9892,12 @@
"type" : "null"
} ]
},
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
"display-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -7905,6 +9929,15 @@
"type" : "null"
} ]
},
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
"lib/uuid" : {
"type" : "string",
"minLength" : 36,
@@ -7920,24 +9953,63 @@
"lib/expression-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
"case-sensitive" : {
"type" : "boolean"
},
"lib/original-effective-type" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
},
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
"source-field" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.field"
},
"join-alias" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ "type" : "string",
+ "minLength" : 1
},
"lib/original-binning" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
},
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
"include-current" : {
"type" : "boolean"
},
@@ -7947,6 +10019,9 @@
"source-field-join-alias" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
@@ -7956,8 +10031,12 @@
},
"original-temporal-unit" : {
"$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
}
- }
+ },
+ "additionalProperties" : false
}, {
"allOf" : [ ]
} ]
@@ -8007,6 +10086,48 @@
"allOf" : [ {
"type" : "object",
"properties" : {
+ "points_of_interest" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.pivot/idx" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "preview_display" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database_partitioned" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.underlying/original" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.snapshot"
+ },
+ "lib/original-join-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "aggregation_index" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
"metabase.lib.metadata.result-metadata/field-ref" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
@@ -8021,6 +10142,9 @@
"type" : "null"
} ]
},
+ "metabase.lib.metadata.result-metadata/remove-join-alias?" : {
+ "type" : "boolean"
+ },
"lib/external-remap" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
@@ -8028,6 +10152,13 @@
"type" : "null"
} ]
},
+ "metabase.driver.mongo.query-processor/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-column-alias" : {
"oneOf" : [ {
"description" : "Name for a column as returned/projected by the previous stage of the query or source Table/source Card. The\n left-hand side (LHS) of\n\n SELECT lhs AS rhs",
@@ -8055,10 +10186,23 @@
"default" : "metadata/column",
"const" : "metadata/column"
},
+ "database_required" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "remapped_from_index" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
"settings" : {
"oneOf" : [ {
- "type" : "object",
- "properties" : { }
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.visualization-settings"
}, {
"type" : "null"
} ]
@@ -8081,6 +10225,13 @@
"default" : "type/*",
"$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
},
+ "source_alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-uuid" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
@@ -8088,120 +10239,126 @@
"type" : "null"
} ]
},
- "qp/implicit-field?" : {
+ "custom_position" : {
"oneOf" : [ {
- "type" : "boolean"
+ "type" : "integer"
}, {
"type" : "null"
} ]
},
- "lib/ref-name" : {
+ "metabase.driver.mongo.query-processor/join-field" : {
"oneOf" : [ {
"type" : "string"
}, {
"type" : "null"
} ]
},
- "id" : {
+ "special_type" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "lib/deduplicated-name" : {
- "description" : "The simply-deduplicated name that was historically used in QP results metadata (originally calculated by\n the [[metabase.query-processor.middleware.annotate]] middleware, now calculated\n by [[metabase.lib.middleware.result-metadata]]). This just adds suffixes to column names e.g. `ID` and `ID` become\n `ID` and `ID_2`, respectively. Kept around because many old field refs use this column name.",
+ "qp/implicit-field?" : {
"oneOf" : [ {
- "type" : "string"
+ "type" : "boolean"
}, {
"type" : "null"
} ]
},
- "coercion_strategy" : {
+ "lib/ref-name" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "lib/transformation-added-base-type" : {
+ "dimension/id" : {
"oneOf" : [ {
- "type" : "boolean"
+ "description" : "Valid Dimension ID",
+ "type" : "integer",
+ "minimum" : 1
}, {
"type" : "null"
} ]
},
- "lib/original-expression-name" : {
+ "expression_name" : {
"oneOf" : [ {
- "type" : "string",
- "minLength" : 1
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "lib/from-model?" : {
+ "metabase.lib.underlying/binning" : {
"oneOf" : [ {
- "type" : "boolean"
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
}, {
"type" : "null"
} ]
},
- "position" : {
+ "metabase.lib.join/target" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.snapshot"
+ },
+ "id" : {
"oneOf" : [ {
- "type" : "integer"
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
}, {
"type" : "null"
} ]
},
- "name" : {
- "type" : "string"
- },
- "lib/card-id" : {
+ "lib/deduplicated-name" : {
+ "description" : "The simply-deduplicated name that was historically used in QP results metadata (originally calculated by\n the [[metabase.query-processor.middleware.annotate]] middleware, now calculated\n by [[metabase.lib.middleware.result-metadata]]). This just adds suffixes to column names e.g. `ID` and `ID` become\n `ID` and `ID_2`, respectively. Kept around because many old field refs use this column name.",
"oneOf" : [ {
- "description" : "Valid Card ID",
- "type" : "integer",
- "minimum" : 1
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "lib/expression-name" : {
+ "coercion_strategy" : {
"oneOf" : [ {
- "type" : "string",
- "minLength" : 1
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
}, {
"type" : "null"
} ]
},
- "lib/breakout?" : {
+ "lib/transformation-added-base-type" : {
"oneOf" : [ {
"type" : "boolean"
}, {
"type" : "null"
} ]
},
- "semantic_type" : {
+ "values/values" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
}, {
"type" : "null"
} ]
},
- "fk_field_name" : {
+ "lib/original-expression-name" : {
"oneOf" : [ {
- "type" : "string"
+ "type" : "string",
+ "minLength" : 1
}, {
"type" : "null"
} ]
},
- "lib/original-effective-type" : {
+ "lib/from-model?" : {
"oneOf" : [ {
- "type" : "string"
+ "type" : "boolean"
}, {
"type" : "null"
} ]
},
- "lib/join-alias" : {
+ "lib/original-fk-join-alias" : {
"oneOf" : [ {
"type" : "string",
"minLength" : 1
@@ -8209,26 +10366,187 @@
"type" : "null"
} ]
},
- "table_id" : {
+ "position" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.SourceTable"
+ "type" : "integer"
}, {
"type" : "null"
} ]
},
- "has_field_values" : {
+ "fingerprint_version" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.has-field-values"
+ "type" : "integer"
}, {
"type" : "null"
} ]
},
- "display_name" : {
+ "name" : {
"type" : "string"
},
+ "lib/original-fk-field-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/card-id" : {
+ "oneOf" : [ {
+ "description" : "Valid Card ID",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.underlying/temporal-unit" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/expression-name" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "minLength" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/breakout?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "data_sensitivity" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database_position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "values/human-readable-values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "semantic_type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "fk_field_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/original-effective-type" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/join-alias" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "minLength" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database_is_auto_increment" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "table_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.SourceTable"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "has_field_values" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.has-field-values"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/source-display-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "display_name" : {
+ "type" : "string"
+ },
+ "remapping" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension/human-readable-field-id" : {
+ "oneOf" : [ {
+ "description" : "Valid Field ID",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/original-fk-field-id" : {
+ "oneOf" : [ {
+ "description" : "Valid Field ID",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
"qp/native-sandbox-column.propagate-coercion?" : {
"type" : "boolean"
},
+ "metabase.lib.join/HACK-from-incomplete-join?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/internal-remap" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
@@ -8267,6 +10585,13 @@
"type" : "null"
} ]
},
+ "lib/options" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.lib-options"
+ }, {
+ "type" : "null"
+ } ]
+ },
"remapped_to" : {
"oneOf" : [ {
"type" : "string"
@@ -8291,31 +10616,74 @@
"type" : "null"
} ]
},
+ "target" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-binning" : {
"oneOf" : [ {
"description" : "Schema for `:binning` options passed to a `:field` clause.",
"oneOf" : [ {
"type" : "object",
"properties" : {
+ "bin-width" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
+ },
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
+ "num-bins" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
+ },
"strategy" : {
"const" : "default"
}
},
- "required" : [ "strategy" ]
+ "required" : [ "strategy" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"bin-width" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
},
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
+ "num-bins" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
+ },
"strategy" : {
"const" : "bin-width"
}
},
- "required" : [ "strategy", "bin-width" ]
+ "required" : [ "strategy", "bin-width" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
+ "bin-width" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
+ },
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
"num-bins" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
},
@@ -8323,7 +10691,8 @@
"const" : "num-bins"
}
},
- "required" : [ "strategy", "num-bins" ]
+ "required" : [ "strategy", "num-bins" ],
+ "additionalProperties" : false
} ]
}, {
"type" : "null"
@@ -8340,6 +10709,13 @@
"type" : "null"
} ]
},
+ "parent_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-display-name" : {
"oneOf" : [ {
"type" : "string"
@@ -8347,6 +10723,9 @@
"type" : "null"
} ]
},
+ "metabase.lib.field.resolution/fallback-metadata?" : {
+ "type" : "boolean"
+ },
"unit" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
@@ -8363,25 +10742,57 @@
"oneOf" : [ {
"type" : "object",
"properties" : {
+ "bin-width" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
+ },
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
+ "num-bins" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
+ },
"strategy" : {
"const" : "default"
}
},
- "required" : [ "strategy" ]
+ "required" : [ "strategy" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"bin-width" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
},
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
+ "num-bins" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
+ },
"strategy" : {
"const" : "bin-width"
}
},
- "required" : [ "strategy", "bin-width" ]
+ "required" : [ "strategy", "bin-width" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
+ "bin-width" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
+ },
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
"num-bins" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
},
@@ -8389,7 +10800,8 @@
"const" : "num-bins"
}
},
- "required" : [ "strategy", "num-bins" ]
+ "required" : [ "strategy", "num-bins" ],
+ "additionalProperties" : false
} ]
}, {
"type" : "null"
@@ -8409,6 +10821,13 @@
"type" : "null"
} ]
},
+ "caveats" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
@@ -8419,6 +10838,13 @@
"active" : {
"type" : "boolean"
},
+ "options" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.options"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/ref-display-name" : {
"oneOf" : [ {
"type" : "string"
@@ -8426,6 +10852,14 @@
"type" : "null"
} ]
},
+ "dimension/type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "internal", "external" ]
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-name" : {
"description" : "The original name of the column as it appeared in the very first place it came from (i.e., the physical name of the\n column in the table it appears in). This should be the same as the `:lib/source-column-alias` for the very first\n usage of the column.\n Allowed to be blank because some databases like SQL Server allow blank column names.",
"oneOf" : [ {
@@ -8441,6 +10875,17 @@
"type" : "null"
} ]
},
+ "lib/original-ref-style-for-result-metadata-purposes" : {
+ "type" : "string",
+ "enum" : [ "original-ref-style/id", "original-ref-style/name" ]
+ },
+ "metabase.driver.mongo.query-processor/inherited?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"description" : {
"oneOf" : [ {
"type" : "string"
@@ -8448,6 +10893,13 @@
"type" : "null"
} ]
},
+ "dimension/name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/simple-display-name" : {
"oneOf" : [ {
"type" : "string",
@@ -8472,7 +10924,8 @@
} ]
}
},
- "required" : [ "display_name", "name" ]
+ "required" : [ "display_name", "name" ],
+ "additionalProperties" : false
}, {
"allOf" : [ ]
} ]
@@ -8489,7 +10942,19 @@
"args" : {
"oneOf" : [ {
"type" : "array",
- "items" : { }
+ "items" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
}, {
"type" : "null"
} ]
@@ -8504,6 +10969,9 @@
"type" : "null"
} ]
},
+ "middleware" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.middleware-options.middleware-options"
+ },
"offset" : {
"oneOf" : [ {
"type" : "integer"
@@ -8515,7 +10983,8 @@
"const" : "internal"
}
},
- "required" : [ "type", "fn" ]
+ "required" : [ "type", "fn" ],
+ "additionalProperties" : false
},
"metabase.lib-be.schema.maybe-legacy-or-empty-query" : {
"description" : "value must be a valid MBQL query, or an empty query.",
@@ -8541,6 +11010,11 @@
"description" : "Target field reference for a dimension mapping, e.g. [:field {:source-field 1} 2].",
"$ref" : "#/components/schemas/mbql.clause.field"
},
+ "metabase.lib-metric.schema..dimension-mapping.type" : {
+ "description" : "Type of dimension mapping.",
+ "type" : "string",
+ "enum" : [ "table" ]
+ },
"metabase.lib-metric.schema..dimension-reference.options" : {
"description" : "Options map for dimension references.",
"type" : "object",
@@ -8566,6 +11040,9 @@
"type" : "null"
} ]
},
+ "lib/uuid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
@@ -8580,12 +11057,153 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib-metric.schema..dimension-source.type" : {
"type" : "string",
"enum" : [ "field" ]
},
+ "metabase.lib-metric.schema..filter-clause.options" : {
+ "description" : "The options of a metric filter clause: MBQL options plus the offset [[metabase.lib-metric.filter]] puts on a\n relative date filter (`previous N units, starting M units ago`).",
+ "default" : { },
+ "type" : "object",
+ "properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
+ "database-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
+ "display-name" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "effective-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "base-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
+ "lib/uuid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
+ },
+ "name" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/expression-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "case-sensitive" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "offset-value" : {
+ "type" : "integer"
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "offset-unit" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/source-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
+ "join-alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
+ "include-current" : {
+ "type" : "boolean"
+ },
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
+ "semantic-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
+ }
+ },
+ "required" : [ "lib/uuid" ],
+ "additionalProperties" : false
+ },
"metabase.lib-metric.schema.binning" : {
"description" : "Schema for `:binning` options passed to a `:dimension` clause.",
"oneOf" : [ {
@@ -8595,7 +11213,8 @@
"const" : "default"
}
},
- "required" : [ "strategy" ]
+ "required" : [ "strategy" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -8606,7 +11225,8 @@
"const" : "bin-width"
}
},
- "required" : [ "strategy", "bin-width" ]
+ "required" : [ "strategy", "bin-width" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -8618,129 +11238,320 @@
"const" : "num-bins"
}
},
- "required" : [ "strategy", "num-bins" ]
- } ]
- },
- "metabase.lib-metric.schema.dimension-id" : {
- "description" : "UUID string identifying a dimension.",
- "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
- },
- "metabase.lib-metric.schema.dimension-reference" : {
- "description" : "Dimension reference clause [:dimension opts uuid].\n Handles normalization from JSON where the tag arrives as a string.",
- "type" : "array",
- "prefixItems" : [ {
- "const" : "dimension"
- }, {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-reference.options"
- }, {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-id"
- } ]
- },
- "metabase.lib-metric.schema.dimension-status" : {
- "description" : "Status of a dimension indicating whether it's active or has issues.\n - :status/active - Column exists, dimension is usable\n - :status/orphaned - Column was removed from schema, dimension preserved for reference",
- "type" : "string",
- "enum" : [ "status/active", "status/orphaned" ]
- },
- "metabase.lib-metric.schema.expression-leaf" : {
- "description" : "A leaf node in a metric math expression: either a metric or measure reference.",
- "anyOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.metric-expression-ref"
- }, {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.measure-expression-ref"
+ "required" : [ "strategy", "num-bins" ],
+ "additionalProperties" : false
} ]
},
- "metabase.lib-metric.schema.filter-clause" : {
- "description" : "MBQL filter clause with normalization for API input.\n Handles string operators and dimension references."
- },
- "metabase.lib-metric.schema.instance-filter" : {
- "description" : "A filter associated with a specific expression instance via lib/uuid.",
+ "metabase.lib-metric.schema.dimension" : {
+ "description" : "Schema for a dimension definition, plus what the metrics module annotates a dimension with before handing it to a\n client: the column it came from, its group, its field values status and how interesting it looks.",
"type" : "object",
"properties" : {
- "filter" : {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.filter-clause"
+ "sources" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-source"
+ }
+ }, {
+ "type" : "null"
+ } ]
},
- "lib/uuid" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
- }
- },
- "required" : [ "lib/uuid", "filter" ]
- },
- "metabase.lib-metric.schema.instance-filters" : {
- "description" : "A sequence of per-instance filters.",
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.instance-filter"
- }
- },
- "metabase.lib-metric.schema.measure-expression-ref" : {
- "description" : "A measure reference in an expression: [:measure {:lib/uuid uuid} measure-id].",
- "type" : "array",
- "prefixItems" : [ {
- "const" : "measure"
- }, {
- "type" : "object",
- "properties" : {
- "lib/uuid" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
- }
+ "group" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-group"
+ }, {
+ "type" : "null"
+ } ]
},
- "required" : [ "lib/uuid" ]
- }, {
- "type" : "integer",
- "minimum" : 1
- } ]
- },
- "metabase.lib-metric.schema.metric-expression-ref" : {
- "description" : "A metric reference in an expression: [:metric {:lib/uuid uuid} card-id].",
- "type" : "array",
- "prefixItems" : [ {
- "const" : "metric"
- }, {
- "type" : "object",
- "properties" : {
- "lib/uuid" : {
+ "display-name" : {
+ "oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
- }
+ }, {
+ "type" : "null"
+ } ]
},
- "required" : [ "lib/uuid" ]
- }, {
- "type" : "integer",
- "minimum" : 1
- } ]
- },
- "metabase.lib-metric.schema.metric-math-expression" : {
- "description" : "A recursive metric math expression tree.\n Can be a leaf (metric/measure ref) or an arithmetic expression [op opts expr expr ...]\n with at least 2 operands.\n Note: uses :fn validator for arithmetic to avoid Malli's recursive seqex limitation.",
- "anyOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.expression-leaf"
- }, {
- "type" : "number"
- }, {
- "type" : "array"
- } ]
- },
- "metabase.lib-metric.schema.typed-projection" : {
- "description" : "A projection associated with a specific expression leaf instance via :lib/uuid.\n The :type and :id identify the source metric/measure for metadata resolution.\n The :lib/uuid disambiguates multiple references to the same metric/measure in an expression.",
- "type" : "object",
- "properties" : {
"id" : {
- "type" : "integer",
- "minimum" : 1
- },
- "lib/uuid" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-id"
},
- "projection" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-reference"
- }
+ "effective-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
+ }, {
+ "type" : "null"
+ } ]
},
- "type" : {
- "type" : "string",
- "enum" : [ "metric", "measure" ]
- }
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "status" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "has-field-values" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.has-field-values"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "status-message" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "default-temporal-unit" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/source" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension-interestingness" : {
+ "oneOf" : [ {
+ "type" : "number"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "default" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "semantic-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib-metric.schema.dimension-group" : {
+ "description" : "Group descriptor for a dimension, indicating which table it belongs to.",
+ "type" : "object",
+ "properties" : {
+ "display-name" : {
+ "type" : "string"
+ },
+ "id" : {
+ "type" : "string"
+ },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "main", "connection" ]
+ }
+ },
+ "required" : [ "id", "type", "display-name" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib-metric.schema.dimension-id" : {
+ "description" : "UUID string identifying a dimension.",
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
+ },
+ "metabase.lib-metric.schema.dimension-mapping" : {
+ "description" : "Schema for a dimension mapping.",
+ "type" : "object",
+ "properties" : {
+ "dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-id"
+ },
+ "table-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-mapping.target"
+ },
+ "type" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-mapping.type"
+ }
+ },
+ "required" : [ "type", "dimension-id", "target" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib-metric.schema.dimension-reference" : {
+ "description" : "Dimension reference clause [:dimension opts uuid].\n Handles normalization from JSON where the tag arrives as a string.",
+ "type" : "array",
+ "prefixItems" : [ {
+ "const" : "dimension"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-reference.options"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-id"
+ } ]
+ },
+ "metabase.lib-metric.schema.dimension-source" : {
+ "type" : "object",
+ "properties" : {
+ "binning" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "field-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-source.type"
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib-metric.schema.dimension-status" : {
+ "description" : "Status of a dimension indicating whether it's active or has issues.\n - :status/active - Column exists, dimension is usable\n - :status/orphaned - Column was removed from schema, dimension preserved for reference",
+ "type" : "string",
+ "enum" : [ "status/active", "status/orphaned" ]
+ },
+ "metabase.lib-metric.schema.expression-leaf" : {
+ "description" : "A leaf node in a metric math expression: either a metric or measure reference.",
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.metric-expression-ref"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.measure-expression-ref"
+ } ]
+ },
+ "metabase.lib-metric.schema.filter-clause" : {
+ "description" : "MBQL filter clause with normalization for API input.\n Handles string operators and dimension references. After normalization every clause is a tag, an options map and\n arguments that are dimension references, literals or clauses themselves."
+ },
+ "metabase.lib-metric.schema.instance-filter" : {
+ "description" : "A filter associated with a specific expression instance via lib/uuid.",
+ "type" : "object",
+ "properties" : {
+ "filter" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.filter-clause"
+ },
+ "lib/uuid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }
+ },
+ "required" : [ "lib/uuid", "filter" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib-metric.schema.instance-filters" : {
+ "description" : "A sequence of per-instance filters.",
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.instance-filter"
+ }
+ },
+ "metabase.lib-metric.schema.measure-expression-ref" : {
+ "description" : "A measure reference in an expression: [:measure {:lib/uuid uuid} measure-id].",
+ "type" : "array",
+ "prefixItems" : [ {
+ "const" : "measure"
+ }, {
+ "type" : "object",
+ "properties" : {
+ "lib/uuid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }
+ },
+ "required" : [ "lib/uuid" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "integer",
+ "minimum" : 1
+ } ]
+ },
+ "metabase.lib-metric.schema.metric-expression-ref" : {
+ "description" : "A metric reference in an expression: [:metric {:lib/uuid uuid} card-id].",
+ "type" : "array",
+ "prefixItems" : [ {
+ "const" : "metric"
+ }, {
+ "type" : "object",
+ "properties" : {
+ "lib/uuid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }
+ },
+ "required" : [ "lib/uuid" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "integer",
+ "minimum" : 1
+ } ]
+ },
+ "metabase.lib-metric.schema.metric-math-expression" : {
+ "description" : "A recursive metric math expression tree.\n Can be a leaf (metric/measure ref) or an arithmetic expression [op opts expr expr ...]\n with at least 2 operands.\n Note: uses :fn validator for arithmetic to avoid Malli's recursive seqex limitation.",
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.expression-leaf"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "array"
+ } ]
+ },
+ "metabase.lib-metric.schema.typed-projection" : {
+ "description" : "A projection associated with a specific expression leaf instance via :lib/uuid.\n The :type and :id identify the source metric/measure for metadata resolution.\n The :lib/uuid disambiguates multiple references to the same metric/measure in an expression.",
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "lib/uuid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "projection" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-reference"
+ }
+ },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "metric", "measure" ]
+ }
},
- "required" : [ "type", "id", "lib/uuid", "projection" ]
+ "required" : [ "type", "id", "lib/uuid", "projection" ],
+ "additionalProperties" : false
},
"metabase.lib-metric.schema.typed-projections" : {
"description" : "A sequence of typed projections.",
@@ -8752,33 +11563,235 @@
"metabase.lib.metadata.protocols.metadata-provider" : {
"description" : "Schema for something that satisfies the [[metabase.lib.metadata.protocols/MetadataProvider]] protocol."
},
+ "metabase.lib.schema..cache-strategy.duration" : {
+ "description" : "Cache for a fixed duration (EE).",
+ "type" : "object",
+ "properties" : {
+ "duration" : {
+ "type" : "number"
+ },
+ "refresh_automatically" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "const" : "duration"
+ },
+ "unit" : {
+ "type" : "string",
+ "enum" : [ "hours", "minutes", "seconds", "days" ]
+ }
+ },
+ "required" : [ "type", "duration", "unit" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib.schema..cache-strategy.nocache" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "const" : "nocache"
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib.schema..cache-strategy.on-query" : {
+ "description" : "What is added to a strategy once it is attached to a query.",
+ "type" : "object",
+ "properties" : {
+ "avg-execution-ms" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "invalidated-at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ },
+ "metabase.lib.schema..cache-strategy.schedule" : {
+ "description" : "Cache until the next run of a cron schedule (EE).",
+ "type" : "object",
+ "properties" : {
+ "refresh_automatically" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "schedule" : {
+ "type" : "string"
+ },
+ "type" : {
+ "const" : "schedule"
+ }
+ },
+ "required" : [ "type", "schedule" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib.schema..cache-strategy.ttl" : {
+ "description" : "Cache for a multiple of the query's average execution time. Typed as plain numbers here: a strategy reaches a query\n from several places (the Card, a Dashboard, the Database), and `metabase.cache.api` is the one that asks for integers.",
+ "type" : "object",
+ "properties" : {
+ "min_duration_ms" : {
+ "type" : "number"
+ },
+ "multiplier" : {
+ "type" : "number"
+ },
+ "type" : {
+ "const" : "ttl"
+ }
+ },
+ "required" : [ "type", "multiplier", "min_duration_ms" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib.schema..query.snapshot" : {
+ "description" : "A whole copy of a query stashed on the query itself under one of the internal keys below.\n\n Deliberately NOT `[:ref ::query]`: [[malli.util/merge]] recurses into the entries that the two schemas being merged\n share, so a self-referential `::query` entry makes `[:merge ::query [:map [<same key> ::query]]]` -- which\n [[metabase.query-processor.util.add-alias-info]] uses -- recur until the stack blows. This shallow shape says what\n the value is without reintroducing the cycle.",
+ "type" : "object",
+ "properties" : {
+ "lib/type" : {
+ "const" : "mbql/query"
+ },
+ "stages" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.stages"
+ }
+ },
+ "required" : [ "lib/type", "stages" ]
+ },
+ "metabase.lib.schema..sandboxing.original-metadata" : {
+ "description" : "The columns a query was expected to return *before* sandboxes replaced its source tables, stashed on the query by\n the enterprise sandboxing middleware (see `expected-cols` in\n `metabase-enterprise.sandbox.query-processor.middleware.sandboxing`) and compared against the sandboxed results\n afterwards.\n\n In production these are legacy, `snake_cased` column metadata maps (i.e.\n `:metabase.legacy-mbql.schema/legacy-column-metadata`), but this key is a verbatim snapshot that must survive\n normalization untouched -- pointing at that schema here would rewrite its keys and drop deprecated ones, which\n breaks round-tripping (see `metabase.lib.convert-test/round-trip-preserve-metadata-test`). So the elements are\n declared as plain maps, which carry no decoders.",
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ },
"metabase.lib.schema..stage.additional" : {
"oneOf" : [ { }, { } ]
},
"metabase.lib.schema..stage.common" : {
"type" : "object",
"properties" : {
+ "qp/stage-had-source-card" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
+ "source-query/native-model?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "persisted-info/native" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "metabase.query-processor.middleware.add-remaps/remaps" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.external-remappings"
+ },
+ "metabase.query-processor.util.add-alias-info/join-alias->escaped" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ },
"lib/stage-metadata" : {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata.stage"
},
+ "metabase.query-processor.middleware.cumulative-aggregations/replaced-indexes" : {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "uniqueItems" : true
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias->escaped" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.desired-column-alias"
+ }
+ },
+ "metabase.query-processor.middleware.add-implicit-joins/reused-join-aliases" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "uniqueItems" : true
+ },
+ "qp/skip-persisted-cache" : {
+ "type" : "boolean"
+ },
+ "metabase-enterprise.sandbox.query-processor.middleware.sandboxing/sandbox?" : {
+ "type" : "boolean"
+ },
+ "source-query/model?" : {
+ "type" : "boolean"
+ },
"parameters" : {
"$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
+ },
+ "qp/added-implicit-fields?" : {
+ "type" : "boolean"
+ },
+ "qp/stage-is-from-source-card" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
+ "query-permissions/sandboxed-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema..stage.initial" : {
- "oneOf" : [ {
- "type" : "object",
- "properties" : { }
- }, { } ]
+ "oneOf" : [ { }, { } ]
},
"metabase.lib.schema..stage.mbql" : {
"allOf" : [ {
"type" : "object",
"properties" : {
+ "qp/stage-had-source-card" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
+ "source-query/native-model?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "persisted-info/native" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
"source-card" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
},
+ "metabase.query-processor.middleware.add-remaps/remaps" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.external-remappings"
+ },
+ "metabase.query-processor.util.add-alias-info/join-alias->escaped" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ },
"lib/type" : {
"const" : "mbql.stage/mbql"
},
@@ -8794,16 +11807,46 @@
"filters" : {
"$ref" : "#/components/schemas/metabase.lib.schema.filters"
},
+ "metabase.query-processor.middleware.cumulative-aggregations/replaced-indexes" : {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "uniqueItems" : true
+ },
"limit" : {
"type" : "integer",
"minimum" : 0
},
+ "metabase.query-processor.util.add-alias-info/desired-alias->escaped" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.desired-column-alias"
+ }
+ },
+ "metabase.query-processor.middleware.add-implicit-joins/reused-join-aliases" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "uniqueItems" : true
+ },
+ "qp/skip-persisted-cache" : {
+ "type" : "boolean"
+ },
+ "metabase-enterprise.sandbox.query-processor.middleware.sandboxing/sandbox?" : {
+ "type" : "boolean"
+ },
"joins" : {
"$ref" : "#/components/schemas/metabase.lib.schema.join.joins"
},
"aggregation" : {
"$ref" : "#/components/schemas/metabase.lib.schema.aggregation.aggregations"
},
+ "source-query/model?" : {
+ "type" : "boolean"
+ },
"fields" : {
"$ref" : "#/components/schemas/metabase.lib.schema.fields"
},
@@ -8819,11 +11862,21 @@
"parameters" : {
"$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
},
+ "qp/added-implicit-fields?" : {
+ "type" : "boolean"
+ },
+ "qp/stage-is-from-source-card" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
+ "query-permissions/sandboxed-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ },
"expressions" : {
"$ref" : "#/components/schemas/metabase.lib.schema.expression.expressions"
}
},
- "required" : [ "lib/type" ]
+ "required" : [ "lib/type" ],
+ "additionalProperties" : false
}, {
"$ref" : "#/components/schemas/metabase.lib.schema..stage.valid-refs"
}, {
@@ -8836,74 +11889,166 @@
"allOf" : [ {
"type" : "object",
"properties" : {
- "collection" : {
+ "qp/stage-had-source-card" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
+ "source-query/native-model?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "persisted-info/native" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
- "lib/stage-metadata" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.metadata.stage"
+ "metabase.query-processor.middleware.add-remaps/remaps" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.external-remappings"
+ },
+ "metabase.query-processor.util.add-alias-info/join-alias->escaped" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
},
"lib/type" : {
"const" : "mbql.stage/native"
},
- "native" : { },
- "parameters" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
+ "lib/stage-metadata" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.stage"
},
"params" : {
"oneOf" : [ {
"type" : "array",
"items" : {
- "anyOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
- }, { } ]
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.param-value"
}
}, {
"type" : "null"
} ]
},
- "query-permissions/referenced-card-ids" : {
+ "projections" : {
"oneOf" : [ {
"type" : "array",
"items" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
- },
- "uniqueItems" : true
+ "type" : "string"
+ }
}, {
"type" : "null"
} ]
},
- "template-tags" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tags"
- }
- },
- "required" : [ "lib/type" ]
- }, {
- "allOf" : [ ]
- } ]
- },
- "metabase.lib.schema..stage.page-and-limit-are-mutually-exclusive" : {
- "description" : "If an MBQL query stage specifies `:page`, it should not also specify `:limit`"
- },
- "metabase.lib.schema..stage.valid-refs" : { },
- "metabase.lib.schema..stages.valid-refs" : { },
- "metabase.lib.schema.actions.row" : {
- "type" : "object",
- "additionalProperties" : { }
- },
- "metabase.lib.schema.aggregation..distinct.arg" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
- },
- "metabase.lib.schema.aggregation..percentile.percentile" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
- },
- "metabase.lib.schema.aggregation.aggregation" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
- },
- "metabase.lib.schema.aggregation.aggregations" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.aggregation.aggregation"
- },
+ "mbql?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "native" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "description" : "a driver's native query when it is not a string, e.g. a MongoDB pipeline or a query with its parameters; its shape is the driver's"
+ } ]
+ },
+ "metabase.query-processor.middleware.cumulative-aggregations/replaced-indexes" : {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "uniqueItems" : true
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias->escaped" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.desired-column-alias"
+ }
+ },
+ "metabase.query-processor.middleware.add-implicit-joins/reused-join-aliases" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "uniqueItems" : true
+ },
+ "qp/skip-persisted-cache" : {
+ "type" : "boolean"
+ },
+ "metabase-enterprise.sandbox.query-processor.middleware.sandboxing/sandbox?" : {
+ "type" : "boolean"
+ },
+ "source-query/model?" : {
+ "type" : "boolean"
+ },
+ "parameters" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
+ },
+ "table-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query-permissions/referenced-card-ids" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
+ "uniqueItems" : true
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "template-tags" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tags"
+ },
+ "qp/added-implicit-fields?" : {
+ "type" : "boolean"
+ },
+ "qp/stage-is-from-source-card" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
+ "query-permissions/sandboxed-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ }
+ },
+ "required" : [ "lib/type" ],
+ "additionalProperties" : false
+ }, {
+ "allOf" : [ ]
+ } ]
+ },
+ "metabase.lib.schema..stage.page-and-limit-are-mutually-exclusive" : {
+ "description" : "If an MBQL query stage specifies `:page`, it should not also specify `:limit`"
+ },
+ "metabase.lib.schema..stage.valid-refs" : { },
+ "metabase.lib.schema..stages.valid-refs" : { },
+ "metabase.lib.schema.actions.row" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ },
+ "metabase.lib.schema.aggregation..distinct.arg" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
+ "metabase.lib.schema.aggregation..percentile.percentile" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
+ },
+ "metabase.lib.schema.aggregation.aggregation" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
+ },
+ "metabase.lib.schema.aggregation.aggregations" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.aggregation.aggregation"
+ },
"minItems" : 1
},
"metabase.lib.schema.binning.bin-width" : {
@@ -8915,25 +12060,57 @@
"oneOf" : [ {
"type" : "object",
"properties" : {
+ "bin-width" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
+ },
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
+ "num-bins" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
+ },
"strategy" : {
"const" : "default"
}
},
- "required" : [ "strategy" ]
+ "required" : [ "strategy" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"bin-width" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
},
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
+ "num-bins" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
+ },
"strategy" : {
"const" : "bin-width"
}
},
- "required" : [ "strategy", "bin-width" ]
+ "required" : [ "strategy", "bin-width" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
+ "bin-width" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
+ },
+ "max-value" : {
+ "type" : "number"
+ },
+ "min-value" : {
+ "type" : "number"
+ },
"num-bins" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
},
@@ -8941,7 +12118,8 @@
"const" : "num-bins"
}
},
- "required" : [ "strategy", "num-bins" ]
+ "required" : [ "strategy", "num-bins" ],
+ "additionalProperties" : false
} ]
},
"metabase.lib.schema.binning.num-bins" : {
@@ -8967,6 +12145,150 @@
"$ref" : "#/components/schemas/metabase.lib.schema.util.distinct-mbql-clauses"
} ]
},
+ "metabase.lib.schema.cache-strategy" : {
+ "description" : "The caching strategy the results-cache middleware should apply to this query, attached\n by [[metabase.query-processor.card]]. Any of the strategy types: which ones an instance may configure is\n `metabase.cache.api`'s business, not the query's.",
+ "oneOf" : [ {
+ "description" : "What is added to a strategy once it is attached to a query.",
+ "type" : "object",
+ "properties" : {
+ "avg-execution-ms" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "invalidated-at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "const" : "nocache"
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ }, {
+ "description" : "What is added to a strategy once it is attached to a query.",
+ "type" : "object",
+ "properties" : {
+ "avg-execution-ms" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "invalidated-at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "min_duration_ms" : {
+ "type" : "number"
+ },
+ "multiplier" : {
+ "type" : "number"
+ },
+ "type" : {
+ "const" : "ttl"
+ }
+ },
+ "required" : [ "type", "multiplier", "min_duration_ms" ],
+ "additionalProperties" : false
+ }, {
+ "description" : "What is added to a strategy once it is attached to a query.",
+ "type" : "object",
+ "properties" : {
+ "avg-execution-ms" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "duration" : {
+ "type" : "number"
+ },
+ "invalidated-at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "refresh_automatically" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "const" : "duration"
+ },
+ "unit" : {
+ "type" : "string",
+ "enum" : [ "hours", "minutes", "seconds", "days" ]
+ }
+ },
+ "required" : [ "type", "duration", "unit" ],
+ "additionalProperties" : false
+ }, {
+ "description" : "What is added to a strategy once it is attached to a query.",
+ "type" : "object",
+ "properties" : {
+ "avg-execution-ms" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "invalidated-at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "refresh_automatically" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "schedule" : {
+ "type" : "string"
+ },
+ "type" : {
+ "const" : "schedule"
+ }
+ },
+ "required" : [ "type", "schedule" ],
+ "additionalProperties" : false
+ } ]
+ },
+ "metabase.lib.schema.common..add-alias-info.source-table" : {
+ "description" : "Value of the `:metabase.query-processor.util.add-alias-info/source-table` option\n that [[metabase.query-processor.util.add-alias-info]] adds to a `:field` ref: the ID of the Table the field comes\n from, the (escaped) alias of the join or source query it comes from, or one of the two sentinel keywords that\n namespace uses for 'the source query' and 'nowhere in particular'.",
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ }, {
+ "type" : "string",
+ "enum" : [ "metabase.query-processor.util.add-alias-info/source", "metabase.query-processor.util.add-alias-info/none" ]
+ } ]
+ },
"metabase.lib.schema.common.base-type" : {
"type" : "string"
},
@@ -8982,6 +12304,12 @@
"default" : { },
"type" : "object",
"properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
"database-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -8989,6 +12317,12 @@
"type" : "null"
} ]
},
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
"display-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -9010,6 +12344,15 @@
"type" : "null"
} ]
},
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
"lib/uuid" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
},
@@ -9023,24 +12366,72 @@
"lib/expression-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
"case-sensitive" : {
"type" : "boolean"
},
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
+ "join-alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
"include-current" : {
"type" : "boolean"
},
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
}, {
"type" : "null"
} ]
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
}
},
- "required" : [ "lib/uuid" ]
+ "required" : [ "lib/uuid" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.common.positive-number" : { },
"metabase.lib.schema.common.semantic-or-relation-type" : {
@@ -9052,6 +12443,29 @@
"minLength" : 36,
"maxLength" : 36
},
+ "metabase.lib.schema.common.visualization-settings" : {
+ "description" : "visualization settings",
+ "type" : "object",
+ "properties" : { }
+ },
+ "metabase.lib.schema.compiled-native-query" : {
+ "description" : "A native query compiled from this query by [[metabase.query-processor.compile]], ready to hand to the driver.\n `:query` is whatever native form the driver uses -- a string for SQL drivers, a map for Mongo -- so it is only\n constrained to be non-`nil`.\n\n Deliberately NOT closed: drivers add their own keys, e.g. Mongo adds `:collection`, `:projections` and `:mbql?`\n (see `:metabase.driver.mongo.query-processor/compiled-pipeline`), and for a query that was already native the\n compiled form is the native stage itself, carrying every key a `::stage.native` has.",
+ "type" : "object",
+ "properties" : {
+ "params" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.param-value"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : { }
+ },
+ "required" : [ "query" ]
+ },
"metabase.lib.schema.constraints.constraints" : {
"description" : "Additional constraints added to a query limiting the maximum number of rows that can be returned. Mostly useful\n because native queries don't support the MBQL `:limit` clause. For MBQL queries, if `:limit` is set, it will\n override these values.",
"type" : "object",
@@ -9066,7 +12480,8 @@
"type" : "integer",
"minimum" : 0
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.deduplicate-refs-ignoring-source-field-name-when-possible" : { },
"metabase.lib.schema.expression..expression.definition" : {
@@ -9160,6 +12575,12 @@
"default" : { },
"type" : "object",
"properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
"database-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -9167,6 +12588,12 @@
"type" : "null"
} ]
},
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
"display-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -9184,6 +12611,15 @@
"base-type" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
},
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
"lib/uuid" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
},
@@ -9197,24 +12633,72 @@
"lib/expression-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
"case-sensitive" : {
"type" : "boolean"
},
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
+ "join-alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
"include-current" : {
"type" : "boolean"
},
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
}, {
"type" : "null"
} ]
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
}
},
- "required" : [ "lib/uuid" ]
+ "required" : [ "lib/uuid" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.expression.temporal..relative-datetime.amount" : {
"oneOf" : [ {
@@ -9256,6 +12740,38 @@
"metabase.lib.schema.expression.window..offset.n" : {
"type" : "integer"
},
+ "metabase.lib.schema.external-remapping" : {
+ "description" : "One external (Dimension) column remapping, as recorded on a query or stage\n by [[metabase.query-processor.middleware.add-remaps]]. Mirrors `:metabase.query-processor.middleware.add-remaps/external-remapping`;\n it is duplicated here because Lib may not depend on the query processor.",
+ "type" : "object",
+ "properties" : {
+ "field-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ },
+ "field-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "human-readable-field-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ },
+ "human-readable-field-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }
+ },
+ "required" : [ "id", "name", "field-id", "field-name", "human-readable-field-id", "human-readable-field-name" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib.schema.external-remappings" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.external-remapping"
+ }
+ },
"metabase.lib.schema.fields" : {
"allOf" : [ {
"type" : "array",
@@ -9304,6 +12820,11 @@
"type" : "integer",
"minimum" : 1
},
+ "metabase.lib.schema.id.collection" : {
+ "description" : "Valid Collection ID",
+ "type" : "integer",
+ "minimum" : 1
+ },
"metabase.lib.schema.id.dashboard" : {
"description" : "Valid Dashboard ID",
"type" : "integer",
@@ -9400,6 +12921,13 @@
"type" : "null"
} ]
},
+ "visualization-settings" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.visualization-settings"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lens-id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -9409,8 +12937,7 @@
},
"pivot/original-query" : {
"oneOf" : [ {
- "type" : "object",
- "additionalProperties" : { }
+ "$ref" : "#/components/schemas/metabase.lib.schema.query"
}, {
"type" : "null"
} ]
@@ -9467,7 +12994,16 @@
"lens-params" : {
"oneOf" : [ {
"type" : "object",
- "additionalProperties" : { }
+ "properties" : {
+ "join_step" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
@@ -9482,6 +13018,9 @@
"type" : "null"
} ]
},
+ "metadata/own-model-query?" : {
+ "type" : "boolean"
+ },
"pulse-id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.pulse"
@@ -9496,7 +13035,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.join.alias" : {
"description" : "The name used to alias the joined table or query. This is usually generated automatically and generally looks like\n `table__via__field`. You can specify this yourself if you need to reference a joined field with a `:join-alias` in\n the options.",
@@ -9534,27 +13074,68 @@
"default" : { },
"type" : "object",
"properties" : {
- "alias" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
- },
- "conditions" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.join.conditions"
- },
- "fields" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.join.fields"
+ "fk-join-alias" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ }, {
+ "type" : "null"
+ } ]
},
"lib/type" : {
"default" : "mbql/join",
"const" : "mbql/join"
},
+ "strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.strategy"
+ },
+ "fk-field-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.join/replace-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "metabase.query-processor.middleware.add-implicit-joins/original-position" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
"stages" : {
"$ref" : "#/components/schemas/metabase.lib.schema.stages"
},
- "strategy" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.join.strategy"
+ "fk-field-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "fields" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.fields"
+ },
+ "alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/is-implicit-join" : {
+ "type" : "boolean"
+ },
+ "qp/keep-default-join-alias" : {
+ "type" : "boolean"
+ },
+ "conditions" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.conditions"
+ },
+ "metabase.query-processor.util.add-alias-info/original-alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
}
},
- "required" : [ "stages", "conditions", "alias" ]
+ "required" : [ "stages", "conditions", "alias" ],
+ "additionalProperties" : false
}, {
"allOf" : [ ]
}, {
@@ -9613,6 +13194,12 @@
"default" : { },
"type" : "object",
"properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
"database-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -9620,6 +13207,19 @@
"type" : "null"
} ]
},
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "coercion-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
"display-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -9637,6 +13237,15 @@
"type" : "null"
} ]
},
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
"lib/uuid" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
},
@@ -9650,12 +13259,47 @@
"lib/expression-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
"case-sensitive" : {
"type" : "boolean"
},
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
+ "join-alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
"unit" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
@@ -9663,18 +13307,31 @@
"type" : "null"
} ]
},
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
"include-current" : {
"type" : "boolean"
},
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
}, {
"type" : "null"
} ]
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
}
},
- "required" : [ "lib/uuid", "effective-type" ]
+ "required" : [ "lib/uuid", "effective-type" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.literal..value.value" : {
"description" : "The value slot of a `:value` clause: a single literal that is not a Clojure collection."
@@ -9720,6 +13377,15 @@
"$ref" : "#/components/schemas/metabase.lib.schema.literal.jvm.big-decimal"
} ]
},
+ "metabase.lib.schema.literal.param-value" : {
+ "description" : "A value bound to a native query parameter: a literal or, once the query processor has substituted parameters, a\n UUID or a `java.time` object.",
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }, {
+ "type" : "string",
+ "format" : "uuid"
+ }, { } ]
+ },
"metabase.lib.schema.literal.temporal" : {
"anyOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.literal.date"
@@ -9968,6 +13634,90 @@
"type" : "string",
"enum" : [ "question", "metric", "model" ]
},
+ "metabase.lib.schema.metadata..column.binning-info" : {
+ "description" : "The legacy description of how a column was binned, as [[metabase.lib.metadata.result-metadata]] spells it out for\n the frontend.",
+ "type" : "object",
+ "properties" : {
+ "max-value" : {
+ "oneOf" : [ {
+ "type" : "number"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "max_value" : {
+ "oneOf" : [ {
+ "type" : "number"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "bin_width" : {
+ "oneOf" : [ {
+ "type" : "number"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "num_bins" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "bin-width" : {
+ "oneOf" : [ {
+ "type" : "number"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "num-bins" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "min_value" : {
+ "oneOf" : [ {
+ "type" : "number"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "binning_strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "binning-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "min-value" : {
+ "oneOf" : [ {
+ "type" : "number"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ },
"metabase.lib.schema.metadata..column.data-sensitivity" : {
"type" : "string",
"enum" : [ "SEC_KEY", "SYS_TELEMETRY", "PHI", "BIO_GEN", "PCI_FIN", "SENS_PERS", "PII", "CORP_IP", "BIZ_CONF", "PUBLIC" ]
@@ -9981,6 +13731,87 @@
"type" : "string",
"enum" : [ "aggregation", "fields", "breakout", "native" ]
},
+ "metabase.lib.schema.metadata..column.lib-options" : {
+ "description" : "What [[metabase.lib.options/with-options]] puts under `:lib/options` when it is handed a column rather than a\n clause: the expression name [[metabase.lib.fe-util/expression-parts]] pins on an expression column, and a `:lib/uuid`\n if something asked for one.",
+ "type" : "object",
+ "properties" : {
+ "lib/expression-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "lib/uuid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
+ }
+ },
+ "additionalProperties" : false
+ },
+ "metabase.lib.schema.metadata..column.options" : {
+ "description" : "What the query processor stashes under a column's `:options` while it runs: never sent by a client, and never\n handed back to one.",
+ "type" : "object",
+ "properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "qp/native-sandbox-column.propagate-coercion?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
+ }
+ },
+ "additionalProperties" : false
+ },
"metabase.lib.schema.metadata..column.remapping.external" : {
"description" : "External remapping (Dimension) for a column. From the [[metabase.warehouse-schema.models.dimension]] with `type =\n external` associated with a `Field` in the application database.\n See [[metabase.query-processor.middleware.add-remaps]] for what this means.",
"type" : "object",
@@ -9998,7 +13829,8 @@
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
}
},
- "required" : [ "lib/type", "id", "name", "field-id" ]
+ "required" : [ "lib/type", "id", "name", "field-id" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.metadata..column.remapping.internal" : {
"description" : "Internal remapping (FieldValues) for a column. From [[metabase.warehouse-schema.models.dimension]] with `type =\n internal` and the [[metabase.warehouse-schema.models.field-values]] associated with a `Field` in the application\n database. See [[metabase.query-processor.middleware.add-remaps]] for what this means.",
@@ -10006,7 +13838,9 @@
"properties" : {
"human-readable-values" : {
"type" : "array",
- "items" : { }
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
},
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
@@ -10019,16 +13853,41 @@
},
"values" : {
"type" : "array",
- "items" : { }
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }
+ },
+ "required" : [ "lib/type", "id", "name", "values", "human-readable-values" ],
+ "additionalProperties" : false
+ },
+ "metabase.lib.schema.metadata..column.snapshot" : {
+ "description" : "A whole column metadata map stashed on *another* column under one of the internal keys below.\n\n Deliberately NOT `[:ref ::column]`: [[malli.util/merge]] recurses into the entries that the two schemas being merged\n share, so a self-referential `::column` entry makes any `[:merge ...]` of two column-bearing maps -- for instance\n `:metabase.lib.schema.drill-thru/drill-thru.column-filter`, which merges two maps that both have a `:column` --\n recur until the stack blows. This shallow shape says what the value is without reintroducing the cycle.",
+ "type" : "object",
+ "properties" : {
+ "base-type" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
+ },
+ "lib/type" : {
+ "const" : "metadata/column"
+ },
+ "name" : {
+ "type" : "string"
}
},
- "required" : [ "lib/type", "id", "name", "values", "human-readable-values" ]
+ "required" : [ "lib/type", "name" ]
},
"metabase.lib.schema.metadata..column.source" : {
"description" : "`:lib/source` -- where a column came from with respect to the current stage.\n\n Traditionally, `:lib/source` meant something slightly different -- it denoted what part of the current stage a\n column came from, and thus included two additional options -- `:source/fields`, for columns used by `:fields`, and\n `:source/breakouts`, for columns used in `:breakout`. This was not really useful information and made `:lib/source`\n itself useless for determining if a column was 'inherited' or not (i.e., whether it came from a previous stage,\n source card, or a join, and should get field name refs instead of field ID refs --\n see [[metabase.lib.field.util/inherited-column?]]).",
"type" : "string",
"enum" : [ "source/card", "source/native", "source/previous-stage", "source/table-defaults", "source/aggregations", "source/joins", "source/expressions", "source/implicitly-joinable", "source/pivot-grouping" ]
},
+ "metabase.lib.schema.metadata..column.timestamp" : {
+ "description" : "A timestamp column of a `metabase_field` row: a `java.time` value on the JVM, the string it was encoded as elsewhere.",
+ "anyOf" : [ {
+ "type" : "string"
+ }, { } ]
+ },
"metabase.lib.schema.metadata..column.validate-for-source" : {
"description" : "Do additional validation for column metadata based on `:lib/source`.",
"oneOf" : [ {
@@ -10094,6 +13953,34 @@
"type" : "null"
} ]
},
+ "metabase.query-processor.pivot/idx" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "remapped-from-index" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "remapped-to" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.underlying/original" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.snapshot"
+ },
+ "lib/original-join-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"fk-join-alias" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
@@ -10101,6 +13988,13 @@
"type" : "null"
} ]
},
+ "database-default" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"metabase.lib.metadata.result-metadata/field-ref" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
@@ -10108,6 +14002,16 @@
"type" : "null"
} ]
},
+ "database-partitioned" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.metadata.result-metadata/remove-join-alias?" : {
+ "type" : "boolean"
+ },
"lib/external-remap" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
@@ -10122,6 +14026,13 @@
"type" : "null"
} ]
},
+ "metabase.driver.mongo.query-processor/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-column-alias" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata.source-column-alias"
@@ -10147,10 +14058,30 @@
"default" : "metadata/column",
"const" : "metadata/column"
},
+ "database-required" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "binning-info" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.binning-info"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "coercion-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
"settings" : {
"oneOf" : [ {
- "type" : "object",
- "additionalProperties" : { }
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.visualization-settings"
}, {
"type" : "null"
} ]
@@ -10162,6 +14093,20 @@
"type" : "null"
} ]
},
+ "table-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "converted-timezone" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"display-name" : {
"oneOf" : [ {
"type" : "string"
@@ -10176,6 +14121,20 @@
"type" : "null"
} ]
},
+ "metabase.driver.mongo.query-processor/join-field" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "order-by-position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
"data-sensitivity" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.data-sensitivity"
@@ -10197,6 +14156,23 @@
"type" : "null"
} ]
},
+ "dimension/id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.underlying/binning" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.join/target" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.snapshot"
+ },
"id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.field"
@@ -10225,6 +14201,33 @@
"type" : "null"
} ]
},
+ "breakout-positions" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "fingerprint-version" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "values/values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-expression-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -10246,9 +14249,37 @@
"type" : "null"
} ]
},
+ "updated-at" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.timestamp"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/original-fk-join-alias" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"type" : "string"
},
+ "lib/original-fk-field-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/card-id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
@@ -10256,6 +14287,13 @@
"type" : "null"
} ]
},
+ "metabase.lib.underlying/temporal-unit" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/expression-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -10270,6 +14308,37 @@
"type" : "null"
} ]
},
+ "values/human-readable-values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last-analyzed" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.timestamp"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database-is-pk" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "json-unfolding" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-effective-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
@@ -10284,6 +14353,20 @@
"type" : "null"
} ]
},
+ "created-at" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.timestamp"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/source-display-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"nfc-path" : {
"oneOf" : [ {
"type" : "array",
@@ -10294,6 +14377,37 @@
"type" : "null"
} ]
},
+ "remapping" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "preview-display" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension/human-readable-field-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/original-fk-field-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "type" : "null"
+ } ]
+ },
"qp/native-sandbox-column.propagate-coercion?" : {
"type" : "boolean"
},
@@ -10304,6 +14418,13 @@
"type" : "null"
} ]
},
+ "metabase.lib.join/HACK-from-incomplete-join?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/internal-remap" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
@@ -10314,6 +14435,20 @@
"selected?" : {
"type" : "boolean"
},
+ "database-is-generated" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/options" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.lib-options"
+ }, {
+ "type" : "null"
+ } ]
+ },
"fk-field-id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.field"
@@ -10321,6 +14456,17 @@
"type" : "null"
} ]
},
+ "target" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-binning" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
@@ -10342,6 +14488,23 @@
"type" : "null"
} ]
},
+ "metabase.lib.field.resolution/fallback-metadata?" : {
+ "type" : "boolean"
+ },
+ "unit" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "remapped-from" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"qp/native-sandbox-column.force-coercion-strategy" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
},
@@ -10359,6 +14522,20 @@
"type" : "null"
} ]
},
+ "database-indexed" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "caveats" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
@@ -10366,9 +14543,40 @@
"type" : "null"
} ]
},
+ "database-is-auto-increment" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"active" : {
"type" : "boolean"
},
+ "points-of-interest" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "filter-positions" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "options" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.options"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/ref-display-name" : {
"oneOf" : [ {
"type" : "string"
@@ -10376,9 +14584,46 @@
"type" : "null"
} ]
},
+ "dimension-interestingness" : {
+ "oneOf" : [ {
+ "type" : "number"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension/type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "internal", "external" ]
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata.original-name"
},
+ "name-field" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database-position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/original-ref-style-for-result-metadata-purposes" : {
+ "type" : "string",
+ "enum" : [ "original-ref-style/id", "original-ref-style/name" ]
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
@@ -10386,6 +14631,20 @@
"type" : "null"
} ]
},
+ "metabase.driver.mongo.query-processor/inherited?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"fk-target-field-id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.field"
@@ -10393,29 +14652,58 @@
"type" : "null"
} ]
},
- "lib/simple-display-name" : {
+ "custom-position" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ "type" : "integer"
}, {
"type" : "null"
} ]
},
- "lib/desired-column-alias" : {
+ "dimension/name" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.metadata.desired-column-alias"
+ "type" : "string"
}, {
"type" : "null"
} ]
- }
- },
- "required" : [ "name" ]
- }, {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.kebab-cased-map"
- }, {
- "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source"
- }, {
- "allOf" : [ ]
- } ]
+ },
+ "parent-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/simple-display-name" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database-is-nullable" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/desired-column-alias" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.desired-column-alias"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "name" ],
+ "additionalProperties" : false
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.kebab-cased-map"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source"
+ }, {
+ "allOf" : [ ]
+ } ]
},
"metabase.lib.schema.metadata.deduplicated-name" : {
"description" : "The simply-deduplicated name that was historically used in QP results metadata (originally calculated by\n the [[metabase.query-processor.middleware.annotate]] middleware, now calculated\n by [[metabase.lib.middleware.result-metadata]]). This just adds suffixes to column names e.g. `ID` and `ID` become\n `ID` and `ID_2`, respectively. Kept around because many old field refs use this column name.",
@@ -10443,7 +14731,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.metadata.fingerprint..fingerprint.number" : {
"description" : "Schema for fingerprint information for Fields deriving from `:type/Number`.",
@@ -10526,7 +14815,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.metadata.fingerprint..fingerprint.temporal" : {
"description" : "Schema for fingerprint information for Fields deriving from `:type/Temporal`.",
@@ -10560,7 +14850,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.metadata.fingerprint..fingerprint.text" : {
"description" : "Schema for fingerprint information for Fields deriving from `:type/Text`.",
@@ -10622,12 +14913,16 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.metadata.fingerprint..fingerprint.type-specific" : {
"description" : "Schema for type-specific fingerprint information.",
"type" : "object",
"properties" : {
+ "type/Date" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.temporal"
+ },
"type/DateTime" : {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.temporal"
},
@@ -10636,8 +14931,12 @@
},
"type/Text" : {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.text"
+ },
+ "type/Time" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.temporal"
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.metadata.fingerprint.fingerprint" : {
"description" : "Schema for a Field 'fingerprint' generated as part of the analysis stage. Used to power the 'classification'\n sub-stage of analysis. Stored as the `fingerprint` column of Field.",
@@ -10645,7 +14944,8 @@
"properties" : {
"experimental" : {
"type" : "object",
- "additionalProperties" : { }
+ "properties" : { },
+ "additionalProperties" : false
},
"global" : {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.global"
@@ -10653,7 +14953,8 @@
"type" : {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.type-specific"
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.metadata.fingerprint.percent" : {
"description" : "Schema for something represting a percentage. A floating-point value between (inclusive) 0 and 1.",
@@ -10673,6 +14974,34 @@
"type" : "null"
} ]
},
+ "metabase.query-processor.pivot/idx" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "remapped-from-index" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "remapped-to" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.underlying/original" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.snapshot"
+ },
+ "lib/original-join-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"fk-join-alias" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
@@ -10680,6 +15009,13 @@
"type" : "null"
} ]
},
+ "database-default" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"metabase.lib.metadata.result-metadata/field-ref" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
@@ -10687,6 +15023,16 @@
"type" : "null"
} ]
},
+ "database-partitioned" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.metadata.result-metadata/remove-join-alias?" : {
+ "type" : "boolean"
+ },
"lib/external-remap" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
@@ -10701,6 +15047,13 @@
"type" : "null"
} ]
},
+ "metabase.driver.mongo.query-processor/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-column-alias" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata.source-column-alias"
@@ -10726,10 +15079,30 @@
"default" : "metadata/column",
"const" : "metadata/column"
},
+ "database-required" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "binning-info" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.binning-info"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "coercion-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
"settings" : {
"oneOf" : [ {
- "type" : "object",
- "additionalProperties" : { }
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.visualization-settings"
}, {
"type" : "null"
} ]
@@ -10741,6 +15114,20 @@
"type" : "null"
} ]
},
+ "table-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "converted-timezone" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"display-name" : {
"oneOf" : [ {
"type" : "string"
@@ -10755,6 +15142,20 @@
"type" : "null"
} ]
},
+ "metabase.driver.mongo.query-processor/join-field" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "order-by-position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
"data-sensitivity" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.data-sensitivity"
@@ -10776,6 +15177,23 @@
"type" : "null"
} ]
},
+ "dimension/id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.underlying/binning" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.lib.join/target" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.snapshot"
+ },
"id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.field"
@@ -10804,6 +15222,33 @@
"type" : "null"
} ]
},
+ "breakout-positions" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "fingerprint-version" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "values/values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-expression-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -10825,9 +15270,37 @@
"type" : "null"
} ]
},
+ "updated-at" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.timestamp"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/original-fk-join-alias" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"type" : "string"
},
+ "lib/original-fk-field-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/card-id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.card"
@@ -10835,6 +15308,13 @@
"type" : "null"
} ]
},
+ "metabase.lib.underlying/temporal-unit" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/expression-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -10849,6 +15329,37 @@
"type" : "null"
} ]
},
+ "values/human-readable-values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last-analyzed" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.timestamp"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database-is-pk" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "json-unfolding" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-effective-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
@@ -10863,6 +15374,20 @@
"type" : "null"
} ]
},
+ "created-at" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.timestamp"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/source-display-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"nfc-path" : {
"oneOf" : [ {
"type" : "array",
@@ -10873,6 +15398,37 @@
"type" : "null"
} ]
},
+ "remapping" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "preview-display" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension/human-readable-field-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/original-fk-field-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "type" : "null"
+ } ]
+ },
"qp/native-sandbox-column.propagate-coercion?" : {
"type" : "boolean"
},
@@ -10883,6 +15439,13 @@
"type" : "null"
} ]
},
+ "metabase.lib.join/HACK-from-incomplete-join?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/internal-remap" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
@@ -10893,6 +15456,20 @@
"selected?" : {
"type" : "boolean"
},
+ "database-is-generated" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/options" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.lib-options"
+ }, {
+ "type" : "null"
+ } ]
+ },
"fk-field-id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.field"
@@ -10900,6 +15477,17 @@
"type" : "null"
} ]
},
+ "target" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-binning" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
@@ -10921,6 +15509,23 @@
"type" : "null"
} ]
},
+ "metabase.lib.field.resolution/fallback-metadata?" : {
+ "type" : "boolean"
+ },
+ "unit" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "remapped-from" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"qp/native-sandbox-column.force-coercion-strategy" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
},
@@ -10938,6 +15543,20 @@
"type" : "null"
} ]
},
+ "database-indexed" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "caveats" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
@@ -10945,9 +15564,40 @@
"type" : "null"
} ]
},
+ "database-is-auto-increment" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"active" : {
"type" : "boolean"
},
+ "points-of-interest" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "filter-positions" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "options" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.options"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/ref-display-name" : {
"oneOf" : [ {
"type" : "string"
@@ -10955,9 +15605,46 @@
"type" : "null"
} ]
},
+ "dimension-interestingness" : {
+ "oneOf" : [ {
+ "type" : "number"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension/type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "internal", "external" ]
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/original-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata.original-name"
},
+ "name-field" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database-position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib/original-ref-style-for-result-metadata-purposes" : {
+ "type" : "string",
+ "enum" : [ "original-ref-style/id", "original-ref-style/name" ]
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
@@ -10965,6 +15652,20 @@
"type" : "null"
} ]
},
+ "metabase.driver.mongo.query-processor/inherited?" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"fk-target-field-id" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.id.field"
@@ -10972,6 +15673,27 @@
"type" : "null"
} ]
},
+ "custom-position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension/name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parent-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/simple-display-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -10979,6 +15701,13 @@
"type" : "null"
} ]
},
+ "database-is-nullable" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/desired-column-alias" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.metadata.desired-column-alias"
@@ -10987,7 +15716,8 @@
} ]
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
}, {
"$ref" : "#/components/schemas/metabase.lib.schema.common.kebab-cased-map"
}, {
@@ -11030,7 +15760,8 @@
"const" : "metadata/results"
}
},
- "required" : [ "columns" ]
+ "required" : [ "columns" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.middleware-options.middleware-options" : {
"description" : "Additional options that can be used to toggle middleware on or off.",
@@ -11068,10 +15799,100 @@
"type" : "null"
} ]
},
+ "csv-include-bom?" : {
+ "description" : "Whether a CSV download should start with a UTF-8 byte-order mark, which Excel needs to read the file as UTF-8.\n Set by `metabase.query-processor.api` from the download's options and read by\n `metabase.query-processor.middleware.format-rows` and the CSV writer; default `true`.",
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"format-rows?" : {
"description" : "Should we skip converting datetime types to ISO-8601 strings with appropriate timezone when post-processing\n results? Used by `metabase.query-processor.middleware.format-rows`default `false`.",
"type" : "boolean"
},
+ "pivot-options" : {
+ "description" : "Which of the query's breakouts and aggregations are the pivot table's rows, columns and measures, and whether it\n shows totals. Attached by `metabase.query-processor.pivot` from the question's visualization settings (or from the\n matching top-level query keys) so the export middleware and streaming writers can lay the results out; not something\n a client sets itself.",
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "column-sort-order" : {
+ "oneOf" : [ {
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "pivot-cols" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "pivot-measures" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "pivot-rows" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "show-column-totals" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "show-row-totals" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "disable-remaps?" : {
+ "description" : "Whether to skip the remapped (human-readable) columns that `metabase.query-processor.middleware.add-remaps`\n normally splices in. Set by callers that want the query's own columns and nothing else -- calculating a Card's\n result metadata, or fetching field values for a filter widget; default `false`.",
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"js-int-to-string?" : {
"description" : "Whether to convert bigint values in results to strings so that they can be parsed losslessly by JavaScript\n clients. Used by `metabase.query-processor.middleware.large-int`; default `false`.",
"oneOf" : [ {
@@ -11084,6 +15905,14 @@
"description" : "Should we skip persisting `result_metadata` to a saved Card while still returning it in query results? Used by\n `metabase.query-processor.middleware.results-metadata`; default `false`. Has no effect when\n `skip-results-metadata?` is true.",
"type" : "boolean"
},
+ "pivot?" : {
+ "description" : "Whether the results should be laid out as a pivot table. Set by `metabase.query-processor.api` from the\n `format_rows`/pivot download options and read by `metabase.query-processor.middleware.pivot-export` and the\n streaming writers; default `false`.",
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"disable-mbql->native?" : {
"description" : "Disable the MBQL->native middleware. If you do this, the query will not work at all, so there are no cases where\n you should set this yourself. This is only used by the `metabase.query-processor.preprocess/preprocess` function to\n get the fully pre-processed query without attempting to convert it to native.",
"type" : "boolean"
@@ -11096,7 +15925,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.order-by.order-by" : {
"oneOf" : [ {
@@ -11129,7 +15959,8 @@
"minimum" : 1
}
},
- "required" : [ "page", "items" ]
+ "required" : [ "page", "items" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.parameter..dimension.options" : {
"type" : "object",
@@ -11137,7 +15968,8 @@
"stage-number" : {
"type" : "integer"
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.parameter..dimension.target" : {
"oneOf" : [ {
@@ -11158,7 +15990,8 @@
"include-current" : {
"type" : "boolean"
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.parameter..parameter.value" : {
"anyOf" : [ {
@@ -11187,20 +16020,39 @@
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
}
},
- "required" : [ "id" ]
+ "required" : [ "id" ],
+ "additionalProperties" : false
}, {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
} ]
},
- "metabase.lib.schema.parameter..variable.target" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-field-ref"
+ "metabase.lib.schema.parameter..values-source-config.value" : {
+ "description" : "One value of a static-list source: a bare value, a one-tuple of it, or a `[value label]` pair.",
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value.scalar"
}, {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.template-tag"
- } ]
- },
- "metabase.lib.schema.parameter.dimension" : { },
- "metabase.lib.schema.parameter.id" : {
+ "type" : "array",
+ "prefixItems" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value.scalar"
+ } ]
+ }, {
+ "type" : "array",
+ "prefixItems" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value.scalar"
+ }, {
+ "type" : "string"
+ } ]
+ } ]
+ },
+ "metabase.lib.schema.parameter..variable.target" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-field-ref"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.template-tag"
+ } ]
+ },
+ "metabase.lib.schema.parameter.dimension" : { },
+ "metabase.lib.schema.parameter.id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
"metabase.lib.schema.parameter.parameter" : {
@@ -11208,9 +16060,54 @@
"allOf" : [ {
"type" : "object",
"properties" : {
+ "values-query-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.values-query-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "filteringparameters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "values-source-config" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.values-source-config"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "display-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
},
+ "ismultiselect" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
@@ -11220,6 +16117,27 @@
"value" : {
"$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
},
+ "values-source-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.values-source-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "sectionid" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "hasvariabletemplatetagtarget" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"required" : {
"oneOf" : [ {
"type" : "boolean"
@@ -11233,6 +16151,16 @@
"target" : {
"$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
},
+ "temporal-units" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
"options" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.options"
@@ -11244,7 +16172,8 @@
"$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
}
},
- "required" : [ "type" ]
+ "required" : [ "type" ],
+ "additionalProperties" : false
}, {
"$ref" : "#/components/schemas/metabase.lib.schema.common.kebab-cased-map"
} ]
@@ -11291,6 +16220,62 @@
"type" : "string",
"enum" : [ "number", "text", "date", "boolean", "date/single", "id", "category", "location/city", "location/state", "location/zip_code", "location/country", "date/range", "date/month-year", "date/quarter-year", "date/relative", "date/all-options", "temporal-unit", "number/!=", "number/<=", "number/=", "number/>=", "number/between", "string/!=", "string/=", "string/contains", "string/does-not-contain", "string/ends-with", "string/starts-with", "boolean/=" ]
},
+ "metabase.lib.schema.parameter.values-query-type" : {
+ "description" : "How a filter widget asks for its values.",
+ "type" : "string",
+ "enum" : [ "none", "list", "search" ]
+ },
+ "metabase.lib.schema.parameter.values-source-config" : {
+ "description" : "The configuration of a filter widget's value source. Its keys are the frontend's snake_case names.",
+ "type" : "object",
+ "properties" : {
+ "card_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "label_field" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-field-ref"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-expression-ref"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "value_field" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-field-ref"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-expression-ref"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..values-source-config.value"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ },
+ "metabase.lib.schema.parameter.values-source-type" : {
+ "description" : "Where a filter widget's values come from, when not from the field it is connected to.",
+ "type" : "string",
+ "enum" : [ "static-list", "card" ]
+ },
"metabase.lib.schema.parameter.variable" : {
"type" : "array",
"prefixItems" : [ {
@@ -11327,7 +16312,8 @@
"type" : "boolean"
}
},
- "required" : [ "rows", "columns" ]
+ "required" : [ "rows", "columns" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.pivot-only-on-last-stage" : { },
"metabase.lib.schema.query" : {
@@ -11345,6 +16331,9 @@
"type" : "null"
} ]
},
+ "user-parameters" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
+ },
"pivot-rows" : {
"oneOf" : [ {
"type" : "array",
@@ -11359,19 +16348,63 @@
"update-row" : {
"$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
},
+ "qp.pivot/remapped-breakout-combination" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/type" : {
"default" : "mbql/query",
"const" : "mbql/query"
},
+ "pivot_rows" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
"settings" : {
"$ref" : "#/components/schemas/metabase.lib.schema.settings.settings"
},
"constraints" : {
"$ref" : "#/components/schemas/metabase.lib.schema.constraints.constraints"
},
+ "cache-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.cache-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "lib.convert/converted?" : {
+ "type" : "boolean"
+ },
"info" : {
"$ref" : "#/components/schemas/metabase.lib.schema.info.info"
},
+ "impersonation/admin?" : {
+ "type" : "boolean"
+ },
+ "async?" : {
+ "type" : "boolean"
+ },
+ "qp/skip-result-metadata-persistence" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/external-remaps" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.external-remappings"
+ },
"show-row-totals" : {
"oneOf" : [ {
"type" : "boolean"
@@ -11379,6 +16412,16 @@
"type" : "null"
} ]
},
+ "qp/compiled-inline" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.compiled-native-query"
+ },
+ "qp.pivot/remapped-indexes" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "integer",
+ "minimum" : 0
+ }
+ },
"middleware" : {
"$ref" : "#/components/schemas/metabase.lib.schema.middleware-options.middleware-options"
},
@@ -11389,6 +16432,16 @@
"$ref" : "#/components/schemas/metabase.lib.schema.id.database"
} ]
},
+ "destination-database/id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ },
+ "qp.pivot/unremapped-breakout-combination" : {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ }
+ },
"pivot-measures" : {
"oneOf" : [ {
"type" : "array",
@@ -11400,9 +16453,47 @@
"type" : "null"
} ]
},
+ "impersonation/allow-write?" : {
+ "type" : "boolean"
+ },
+ "pivot_cols" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "impersonation/role" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "qp.pivot/num-remapped-breakouts" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "qp/compiled" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.compiled-native-query"
+ },
"stages" : {
"$ref" : "#/components/schemas/metabase.lib.schema.stages"
},
+ "qp.pivot/num-unremapped-breakouts" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "metabase.query-processor.util.add-alias-info/original" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema..query.snapshot"
+ },
+ "viz-settings" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.visualization-settings"
+ }, {
+ "type" : "null"
+ } ]
+ },
"pivot-cols" : {
"oneOf" : [ {
"type" : "array",
@@ -11414,12 +16505,58 @@
"type" : "null"
} ]
},
+ "show_column_totals" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "qp.pivot/num-remapped-cols" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "qp/source-card-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
"parameters" : {
"$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
},
+ "query-permissions/referenced-card-ids" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
+ "uniqueItems" : true
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "show_row_totals" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
"create-row" : {
"$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
},
+ "pivot_measures" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer",
+ "minimum" : 0
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase-enterprise.sandbox.query-processor.middleware.sandboxing/original-metadata" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema..sandboxing.original-metadata"
+ },
"was-pivot" : {
"description" : "Whether this query was originally run as a pivot query. Stamped into the saved `json_query` by\n `metabase.query-processor.middleware.process-userland-query` and sent back by clients re-downloading pivot query\n results.",
"oneOf" : [ {
@@ -11429,7 +16566,8 @@
} ]
}
},
- "required" : [ "stages" ]
+ "required" : [ "stages" ],
+ "additionalProperties" : false
}, {
"$ref" : "#/components/schemas/metabase.lib.schema.util.unique-uuids"
}, {
@@ -11442,6 +16580,12 @@
"default" : { },
"type" : "object",
"properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
"database-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -11449,6 +16593,12 @@
"type" : "null"
} ]
},
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
"display-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -11470,6 +16620,15 @@
"type" : "null"
} ]
},
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
"lib/uuid" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
},
@@ -11483,27 +16642,78 @@
"lib/expression-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
"case-sensitive" : {
"type" : "boolean"
},
+ "lib/original-effective-type" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
+ },
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
+ "join-alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
"include-current" : {
"type" : "boolean"
},
"temporal-unit" : {
"$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
},
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
}, {
"type" : "null"
} ]
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
}
},
- "required" : [ "lib/uuid" ]
+ "required" : [ "lib/uuid" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.ref..field.id" : {
"type" : "array",
@@ -11530,6 +16740,12 @@
"default" : { },
"type" : "object",
"properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
"binning" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
},
@@ -11543,6 +16759,12 @@
"type" : "null"
} ]
},
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
"display-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -11570,6 +16792,15 @@
"type" : "null"
} ]
},
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
"lib/uuid" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
},
@@ -11583,24 +16814,63 @@
"lib/expression-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
"case-sensitive" : {
"type" : "boolean"
},
"lib/original-effective-type" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
},
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
"source-field" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.field"
},
"join-alias" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ "type" : "string",
+ "minLength" : 1
},
"lib/original-binning" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
},
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
"include-current" : {
"type" : "boolean"
},
@@ -11610,6 +16880,9 @@
"source-field-join-alias" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
@@ -11619,9 +16892,13 @@
},
"original-temporal-unit" : {
"$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
}
},
- "required" : [ "lib/uuid", "base-type" ]
+ "required" : [ "lib/uuid", "base-type" ],
+ "additionalProperties" : false
}, {
"allOf" : [ ]
} ]
@@ -11631,6 +16908,12 @@
"default" : { },
"type" : "object",
"properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
"binning" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
},
@@ -11644,6 +16927,12 @@
"type" : "null"
} ]
},
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
"display-name" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -11675,6 +16964,15 @@
"type" : "null"
} ]
},
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
"lib/uuid" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
},
@@ -11688,24 +16986,63 @@
"lib/expression-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
"case-sensitive" : {
"type" : "boolean"
},
"lib/original-effective-type" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
},
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
"source-field" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.field"
},
"join-alias" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ "type" : "string",
+ "minLength" : 1
},
"lib/original-binning" : {
"$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
},
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
"include-current" : {
"type" : "boolean"
},
@@ -11715,6 +17052,9 @@
"source-field-join-alias" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
@@ -11724,9 +17064,13 @@
},
"original-temporal-unit" : {
"$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
}
},
- "required" : [ "lib/uuid" ]
+ "required" : [ "lib/uuid" ],
+ "additionalProperties" : false
}, {
"allOf" : [ ]
} ]
@@ -11735,6 +17079,12 @@
"default" : { },
"type" : "object",
"properties" : {
+ "metabase.query-processor.util.add-alias-info/source-table" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common..add-alias-info.source-table"
+ },
+ "qp/allow-coercion-for-columns-without-integer-qp.add.source-table" : {
+ "type" : "boolean"
+ },
"database-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
@@ -11742,6 +17092,12 @@
"type" : "null"
} ]
},
+ "metabase.driver.sql.query-processor/forced-alias" : {
+ "type" : "boolean"
+ },
+ "metabase.driver.sql.parameters.substitution/compiling-field-filter?" : {
+ "type" : "boolean"
+ },
"display-name" : {
"type" : "string",
"minLength" : 1
@@ -11760,6 +17116,15 @@
"type" : "null"
} ]
},
+ "metabase.query-processor.util.add-alias-info/nfc-path" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string"
+ }
+ },
+ "metabase.driver.sql.query-processor/add-cast" : {
+ "type" : "string"
+ },
"lib/uuid" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
},
@@ -11770,25 +17135,73 @@
"lib/expression-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "metabase.query-processor.middleware.add-remaps/original-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
+ "metabase.driver.sqlserver/optimized-bucketing?" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.middleware.add-remaps/new-field-dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
+ },
"case-sensitive" : {
"type" : "boolean"
},
+ "metabase.query-processor.util.add-alias-info/source-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase.driver.sql.query-processor/wrap-in-case" : {
+ "type" : "boolean"
+ },
+ "metabase.query-processor.util.add-alias-info/desired-alias" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"lib/source-name" : {
"type" : "string",
"minLength" : 1
},
+ "qp/ignore-coercion" : {
+ "type" : "boolean"
+ },
+ "join-alias" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "metabase.driver.mongo.query-processor/join-local" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
+ },
+ "qp/native-sandbox-column.force-coercion-strategy" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.coercion-strategy"
+ },
+ "metabase.query-processor.util.add-alias-info/resolved" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
+ },
"include-current" : {
"type" : "boolean"
},
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
+ },
"semantic-type" : {
"oneOf" : [ {
"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
}, {
"type" : "null"
} ]
+ },
+ "metabase.query-processor.util.transformations.nest-breakouts/externally-remapped-field" : {
+ "type" : "boolean"
}
},
- "required" : [ "lib/uuid" ]
+ "required" : [ "lib/uuid" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.ref.ref" : {
"$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
@@ -11805,7 +17218,8 @@
"description" : "The timezone the query should be ran in, overriding the default report timezone for the instance.",
"$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal.timezone-id"
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.stage" : {
"default" : {
@@ -11843,12 +17257,14 @@
"include-current" : {
"type" : "boolean"
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.lib.schema.template-tag..raw-value.type" : {
"type" : "string",
"enum" : [ "date", "number", "boolean", "text" ]
},
+ "metabase.lib.schema.template-tag..template-tag-map.validate-names" : { },
"metabase.lib.schema.template-tag..value.common" : {
"type" : "object",
"properties" : {
@@ -11861,14 +17277,21 @@
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
},
+ "lib.walk/template-tag-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
+ },
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
},
"required" : {
"type" : "boolean"
+ },
+ "sectionid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
}
},
- "required" : [ "name", "display-name" ]
+ "required" : [ "name", "display-name" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.template-tag.common" : {
"type" : "object",
@@ -11879,11 +17302,18 @@
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
},
+ "lib.walk/template-tag-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
+ },
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
+ },
+ "sectionid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
}
},
- "required" : [ "name", "display-name" ]
+ "required" : [ "name", "display-name" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.template-tag.disallow-dimension" : { },
"metabase.lib.schema.template-tag.distinct-template-tags" : { },
@@ -11896,9 +17326,15 @@
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
},
+ "lib.walk/template-tag-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
+ },
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
},
+ "sectionid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
"required" : {
"type" : "boolean"
},
@@ -11925,7 +17361,8 @@
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.widget-type"
}
},
- "required" : [ "name", "display-name", "type", "widget-type" ]
+ "required" : [ "name", "display-name", "type", "widget-type" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.template-tag.id" : {
"oneOf" : [ {
@@ -11942,26 +17379,40 @@
"allOf" : [ {
"type" : "object",
"properties" : {
- "default" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
- },
"display-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
},
+ "lib.walk/template-tag-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
+ },
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
},
+ "sectionid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
"required" : {
"type" : "boolean"
},
"type" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag..raw-value.type"
+ },
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ },
+ "widget-type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.widget-type"
+ }, {
+ "type" : "null"
+ } ]
}
},
- "required" : [ "name", "display-name", "type" ]
+ "required" : [ "name", "display-name", "type" ],
+ "additionalProperties" : false
}, {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
} ]
@@ -11970,29 +17421,36 @@
"allOf" : [ {
"type" : "object",
"properties" : {
- "database" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
- },
"display-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "snippet-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
},
+ "lib.walk/template-tag-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
+ },
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
},
- "snippet-id" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.snippet"
+ "database" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
},
- "snippet-name" : {
+ "sectionid" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
"type" : {
"const" : "snippet"
+ },
+ "snippet-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.snippet"
}
},
- "required" : [ "name", "display-name", "type", "snippet-name" ]
+ "required" : [ "name", "display-name", "type", "snippet-name" ],
+ "additionalProperties" : false
}, {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
} ]
@@ -12012,29 +17470,43 @@
"$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
}
},
- "required" : [ "field-id", "op", "value" ]
+ "required" : [ "field-id", "op", "value" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.template-tag.source-query" : {
"allOf" : [ {
"type" : "object",
"properties" : {
- "card-id" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
- },
"display-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
},
+ "lib.walk/template-tag-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
+ },
+ "card-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
},
- "type" : {
- "const" : "card"
+ "sectionid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "required" : {
+ "type" : "boolean"
+ },
+ "type" : {
+ "const" : "card"
+ },
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
}
},
- "required" : [ "name", "display-name", "type", "card-id" ]
+ "required" : [ "name", "display-name", "type", "card-id" ],
+ "additionalProperties" : false
}, {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
} ]
@@ -12043,32 +17515,45 @@
"allOf" : [ {
"type" : "object",
"properties" : {
+ "table-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ },
"display-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
- "emit-alias" : {
- "type" : "boolean"
- },
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
},
+ "lib.walk/template-tag-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
+ },
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
},
+ "sectionid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
"source-filters" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.source-filter"
}
},
- "table-id" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ "required" : {
+ "type" : "boolean"
},
"type" : {
"const" : "table"
+ },
+ "emit-alias" : {
+ "type" : "boolean"
+ },
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
}
},
- "required" : [ "name", "display-name", "type", "table-id" ]
+ "required" : [ "name", "display-name", "type", "table-id" ],
+ "additionalProperties" : false
}, {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
} ]
@@ -12088,6 +17573,17 @@
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.raw-value"
} ]
},
+ "metabase.lib.schema.template-tag.template-tag-map" : {
+ "description" : "Legacy way to store template tags... storing them as a map is problematic because having more than 8 template tags\n causes the map to switch to a hash map (in Clojure < 1.13) and order gets lost (see #5136). For the sake of keeping\n things simple for the FE (which does not have this issue with JS Objects).\n\n This is still used by a handful of functions to support easy lookup by tag name, so we'll leave the schema around\n FOR NOW, but it would probably be better to remove this entirely and just introduce helper functions for looking\n things up.",
+ "allOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag"
+ }
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag..template-tag-map.validate-names"
+ } ]
+ },
"metabase.lib.schema.template-tag.template-tags" : {
"description" : "Prior to 63, this was a map, but was changed to a list to preserve order with more than 8 template tags.\n\n Each tag must have a distinct `:name`.",
"allOf" : [ {
@@ -12102,32 +17598,39 @@
"metabase.lib.schema.template-tag.temporal-unit" : {
"type" : "object",
"properties" : {
- "alias" : {
- "type" : "string"
- },
- "default" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
- },
- "dimension" : {
- "$ref" : "#/components/schemas/mbql.clause.field"
- },
"display-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
},
+ "lib.walk/template-tag-name" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
+ },
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
},
+ "sectionid" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
"required" : {
"type" : "boolean"
},
"type" : {
"const" : "temporal-unit"
+ },
+ "alias" : {
+ "type" : "string"
+ },
+ "dimension" : {
+ "$ref" : "#/components/schemas/mbql.clause.field"
+ },
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
}
},
- "required" : [ "name", "display-name", "type" ]
+ "required" : [ "name", "display-name", "type" ],
+ "additionalProperties" : false
},
"metabase.lib.schema.template-tag.widget-type" : {
"description" : "Schema for valid values of `:widget-type` for a `:metabase.lib.schema.template-tag/field-filter` template tag.",
@@ -12251,9 +17754,7 @@
"minimum" : 1
},
"definition" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "$ref" : "#/components/schemas/metabase.measures.schema.definition"
},
"created_at" : { },
"creator_id" : {
@@ -12276,620 +17777,5571 @@
"$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query"
},
"metabase.metabot.context.context" : {
- "allOf" : [ {
- "type" : "object",
- "additionalProperties" : { }
- }, {
- "type" : "object",
- "properties" : {
- "user_is_viewing" : {
- "type" : "array",
- "items" : {
- "anyOf" : [ {
- "type" : "object",
- "properties" : {
- "chart_configs" : {
- "type" : "array",
- "items" : {
- "type" : "object",
- "properties" : {
- "query" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- }
- }
- }
- },
- "query" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- },
- "type" : {
- "type" : "string",
- "enum" : [ "model", "question", "metric", "adhoc" ]
- }
- },
- "required" : [ "type" ]
- }, {
- "type" : "object",
- "properties" : {
- "query" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- },
- "type" : {
- "type" : "string",
- "enum" : [ "dashboard", "model", "transform", "code_editor", "document", "question", "metric", "adhoc" ]
- }
- },
- "required" : [ "type" ]
- } ]
- }
- }
- }
- } ]
- },
- "metabase.metabot.schema.client-message" : {
- "description" : "One persisted message as the client models it.",
+ "description" : "The context a Metabot request carries. Besides what the client sends, [[create-context]] adds the user's recent\n views, the current time and the caller's capabilities before the agent reads it.",
"type" : "object",
"properties" : {
- "contextTokens" : {
- "type" : "integer"
- },
- "externalId" : {
- "type" : "string"
- },
- "id" : {
- "type" : "string"
- },
- "parts" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.metabot.schema.client-message-part"
- }
- },
- "role" : {
- "type" : "string",
- "enum" : [ "user", "agent" ]
- },
- "status" : {
- "$ref" : "#/components/schemas/metabase.metabot.schema.client-message-status"
- }
- },
- "required" : [ "id", "role", "parts", "status" ]
- },
- "metabase.metabot.schema.client-message-part" : {
- "description" : "One part of a persisted message: its a text, tool call, or data blob.",
- "oneOf" : [ {
- "type" : "object",
- "properties" : {
- "id" : {
- "type" : "string"
- },
- "message" : {
- "type" : "string"
- },
- "role" : {
- "type" : "string",
- "enum" : [ "user", "agent" ]
- },
- "type" : {
- "const" : "text"
- }
- },
- "required" : [ "id", "role", "type", "message" ]
- }, {
- "type" : "object",
- "properties" : {
- "args" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
- },
- "id" : {
- "type" : "string"
- },
- "is_error" : {
- "type" : "boolean"
- },
- "name" : {
- "type" : "string"
- },
- "result" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
- },
- "role" : {
- "const" : "agent"
- },
- "status" : {
- "type" : "string",
- "enum" : [ "started", "ended" ]
- },
- "type" : {
- "const" : "tool_call"
- }
- },
- "required" : [ "id", "role", "type", "name", "args", "status" ]
- }, {
- "type" : "object",
- "properties" : {
- "id" : {
- "type" : "string"
- },
- "part" : {
- "type" : "object",
- "properties" : {
- "data" : { },
- "type" : {
- "type" : "string"
- }
- },
- "required" : [ "type", "data" ]
- },
- "role" : {
- "const" : "agent"
- },
- "type" : {
- "const" : "data_part"
- }
- },
- "required" : [ "id", "role", "type", "part" ]
- } ]
- },
- "metabase.metabot.schema.client-message-status" : {
- "description" : "Where a message's turn got to.",
- "oneOf" : [ {
- "type" : "object",
- "properties" : {
- "type" : {
- "const" : "done"
- }
- },
- "required" : [ "type" ]
- }, {
- "type" : "object",
- "properties" : {
- "type" : {
- "const" : "aborted"
- }
- },
- "required" : [ "type" ]
- }, {
- "type" : "object",
- "properties" : {
- "type" : {
- "const" : "in_progress"
- }
- },
- "required" : [ "type" ]
- }, {
- "type" : "object",
- "properties" : {
- "error" : {
+ "capabilities" : {
+ "oneOf" : [ {
"anyOf" : [ {
- "type" : "string"
- }, {
- "type" : "object",
- "properties" : {
- "data" : { },
- "message" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
- },
- "type" : {
- "type" : "string"
- }
- }
- } ]
- },
- "type" : {
- "const" : "errored"
- }
- },
- "required" : [ "type", "error" ]
- } ]
- },
- "metabase.metabot.schema.state" : {
- "type" : "object",
- "properties" : {
- "chart-configs" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "object",
- "properties" : { }
- }
- },
- "charts" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "object",
- "properties" : { }
- }
- },
- "link-registry" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string"
- }
- },
- "queries" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "object",
- "properties" : { }
- }
- },
- "todos" : {
- "type" : "array",
- "items" : {
- "type" : "object",
- "properties" : { }
- }
- },
- "transforms" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "object",
- "properties" : { }
- }
- }
- }
- },
- "metabase.metabot.schema.state-map-key" : {
- "description" : "A dynamic state-map key, normalized to its canonical string representation.",
- "anyOf" : [ {
- "type" : "string"
- }, {
- "type" : "string"
- } ]
- },
- "metabase.metrics.api.BreakoutValuesResponse" : {
- "type" : "object",
- "properties" : {
- "col" : {
- "type" : "object",
- "properties" : { }
- },
- "values" : {
- "type" : "array",
- "items" : { }
- }
- },
- "required" : [ "values", "col" ]
- },
- "metabase.metrics.api.DatasetRequest" : {
- "description" : "Schema for POST /dataset request body.",
- "type" : "object",
- "properties" : {
- "definition" : {
- "$ref" : "#/components/schemas/metabase.metrics.api.Definition"
- }
- },
- "required" : [ "definition" ]
- },
- "metabase.metrics.api.DatasetResponse" : {
- "description" : "Schema for POST /dataset response.",
- "type" : "object",
- "properties" : {
- "data" : {
- "type" : "object",
- "properties" : {
- "cols" : {
- "type" : "array",
- "items" : { }
- },
- "rows" : {
"type" : "array",
- "items" : { }
- }
- },
- "required" : [ "cols", "rows" ]
- },
- "row_count" : {
- "description" : "value must be an integer greater or equal to than zero.",
- "type" : "integer",
- "minimum" : 0
- },
- "status" : {
- "enum" : [ "completed", "completed" ]
- }
- },
- "required" : [ "status", "data", "row_count" ]
- },
- "metabase.metrics.api.Definition" : {
- "description" : "Schema for the definition object within a dataset request.\n Uses expression-based contract for metric math support.",
- "type" : "object",
- "properties" : {
- "expression" : {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.metric-math-expression"
- },
- "filters" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.instance-filters"
- }, {
- "type" : "null"
- } ]
- },
- "projections" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.typed-projections"
- }, {
- "type" : "null"
- } ]
- }
- },
- "required" : [ "expression" ]
- },
- "metabase.metrics.api.Metric" : {
- "description" : "Schema for a Metric in list responses (without hydrated dimensions).",
- "type" : "object",
- "properties" : {
- "collection" : {
- "oneOf" : [ {
- "type" : "object",
- "properties" : {
- "id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
+ "items" : {
+ "type" : "string"
},
- "name" : {
+ "uniqueItems" : true
+ }, {
+ "type" : "array",
+ "items" : {
"type" : "string"
}
- },
- "required" : [ "id", "name" ]
- }, {
- "type" : "null"
- } ]
- },
- "collection_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ } ]
}, {
"type" : "null"
} ]
},
- "description" : {
+ "first_day_of_week" : {
"oneOf" : [ {
"type" : "string"
}, {
"type" : "null"
} ]
},
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "name" : {
- "type" : "string"
- }
- },
- "required" : [ "id", "name", "description", "collection_id" ]
- },
- "metabase.metrics.api.MetricWithDimensions" : {
- "description" : "Schema for a Metric in list responses (without hydrated dimensions).",
- "type" : "object",
- "properties" : {
- "dimension_mappings" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.metrics.dimension.dimension-mapping"
- }
- },
- "collection" : {
+ "slack_channel_id" : {
"oneOf" : [ {
- "type" : "object",
- "properties" : {
- "id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- },
- "name" : {
- "type" : "string"
- }
- },
- "required" : [ "id", "name" ]
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "dataset_query" : {
+ "user_recently_viewed" : {
"oneOf" : [ {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.metabot.context.recently-viewed-item"
+ }
}, {
"type" : "null"
} ]
},
- "result_column_name" : {
+ "research_plan" : {
"oneOf" : [ {
- "type" : "string"
+ "$ref" : "#/components/schemas/metabase.metabot.context.research-plan"
}, {
"type" : "null"
} ]
},
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "name" : {
- "type" : "string"
- },
- "dimensions" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.metrics.dimension.dimension"
- }
- },
- "database_id" : {
+ "code_editor" : {
"oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "type" : "object",
+ "properties" : {
+ "buffers" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "cursor" : {
+ "type" : "object",
+ "properties" : {
+ "column" : {
+ "type" : "integer"
+ },
+ "line" : {
+ "type" : "integer"
+ }
+ },
+ "required" : [ "line", "column" ],
+ "additionalProperties" : false
+ },
+ "id" : {
+ "type" : "string"
+ },
+ "selection" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "end" : {
+ "type" : "object",
+ "properties" : {
+ "column" : {
+ "type" : "integer"
+ },
+ "line" : {
+ "type" : "integer"
+ }
+ },
+ "required" : [ "line", "column" ],
+ "additionalProperties" : false
+ },
+ "start" : {
+ "type" : "object",
+ "properties" : {
+ "column" : {
+ "type" : "integer"
+ },
+ "line" : {
+ "type" : "integer"
+ }
+ },
+ "required" : [ "line", "column" ],
+ "additionalProperties" : false
+ },
+ "text" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "text", "start", "end" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source" : {
+ "type" : "object",
+ "properties" : {
+ "database_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "language" : {
+ "const" : "sql"
+ }
+ },
+ "required" : [ "language", "database_id" ],
+ "additionalProperties" : false
+ }
+ },
+ "required" : [ "id", "source", "cursor" ],
+ "additionalProperties" : false
+ }
+ },
+ "type" : {
+ "const" : "code_editor"
+ }
+ },
+ "required" : [ "type", "buffers" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "user_is_viewing" : {
+ "type" : "array",
+ "items" : {
+ "anyOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "table" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.warehouse-schema.schema.table"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "owner" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "common_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "email" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "first_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "can_read" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_run" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "message" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "user_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "checkpoint_hi_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "is_active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "transform_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "run_method" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "checkpoint_lo_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "status" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "transform_entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "checkpoint_filter_field_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "end_time" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metered_as" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dag_run_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "transform_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "start_time" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "job_run_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "scheduled" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query"
+ }, {
+ "type" : "object",
+ "properties" : {
+ "database" : {
+ "type" : "null"
+ },
+ "lib/type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "native" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "collection" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "template-tags" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag-map"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "source-table" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "stages" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.stage"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ } ]
+ },
+ "collection" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.collections.schema.collection"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source_database_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "error" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "owner_email" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target_db_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "is_qbnewb" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_login" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "type" : "integer"
+ },
+ "email" : {
+ "type" : "string"
+ },
+ "is_data_analyst" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "is_superuser" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "tenant_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "first_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "date_joined" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "common_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id", "email" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "owner_user_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dependency" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source_readable" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "tag_ids" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "table_dependencies" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.driver..native-query-deps.table-dep"
+ }, {
+ "$ref" : "#/components/schemas/metabase.driver..native-query-deps.transform-dep"
+ } ]
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "can_write" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "can_execute" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source" : {
+ "oneOf" : [ {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "query" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query"
+ }, {
+ "type" : "object",
+ "properties" : {
+ "database" : {
+ "type" : "null"
+ },
+ "lib/type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "native" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "collection" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "template-tags" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag-map"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "source-table" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "stages" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.stage"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ } ]
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source-incremental-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.transforms.schema.source-incremental-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "anyOf" : [ {
+ "const" : "query"
+ }, {
+ "const" : "query"
+ } ]
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "body" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source-database" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source-incremental-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.transforms.schema.source-incremental-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source-tables" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "alias" : {
+ "type" : "string"
+ },
+ "database_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "table_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "alias" ],
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "anyOf" : [ {
+ "const" : "python"
+ }, {
+ "const" : "python"
+ } ]
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "model", "question", "metric", "adhoc" ]
+ },
+ "deleted" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "requestable_indexes" : {
+ "oneOf" : [ {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_checkpoint_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target" : {
+ "oneOf" : [ {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "database" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "anyOf" : [ {
+ "const" : "table"
+ }, {
+ "const" : "table"
+ } ]
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "database" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target-incremental-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.transforms.schema.target-incremental-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "anyOf" : [ {
+ "const" : "table-incremental"
+ }, {
+ "const" : "table-incremental"
+ } ]
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database_schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "sql_engine" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "used_tables" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "database_schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "run_trigger" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target_table_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "buffers" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "cursor" : {
+ "type" : "object",
+ "properties" : {
+ "column" : {
+ "type" : "integer"
+ },
+ "line" : {
+ "type" : "integer"
+ }
+ },
+ "required" : [ "line", "column" ],
+ "additionalProperties" : false
+ },
+ "id" : {
+ "type" : "string"
+ },
+ "selection" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "end" : {
+ "type" : "object",
+ "properties" : {
+ "column" : {
+ "type" : "integer"
+ },
+ "line" : {
+ "type" : "integer"
+ }
+ },
+ "required" : [ "line", "column" ],
+ "additionalProperties" : false
+ },
+ "start" : {
+ "type" : "object",
+ "properties" : {
+ "column" : {
+ "type" : "integer"
+ },
+ "line" : {
+ "type" : "integer"
+ }
+ },
+ "required" : [ "line", "column" ],
+ "additionalProperties" : false
+ },
+ "text" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "text", "start", "end" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source" : {
+ "type" : "object",
+ "properties" : {
+ "database_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "language" : {
+ "const" : "sql"
+ }
+ },
+ "required" : [ "language", "database_id" ],
+ "additionalProperties" : false
+ }
+ },
+ "required" : [ "id", "source", "cursor" ],
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "chart_configs" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "columns" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "boolean", "string", "null", "number", "time", "datetime", "date" ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "name" ],
+ "additionalProperties" : false
+ }
+ },
+ "rows" : {
+ "type" : "array",
+ "items" : {
+ "type" : "array",
+ "items" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ } ]
+ }
+ }
+ }
+ },
+ "required" : [ "columns", "rows" ],
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "display_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query"
+ }, {
+ "type" : "object",
+ "properties" : {
+ "database" : {
+ "type" : "null"
+ },
+ "lib/type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "native" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "collection" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "template-tags" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag-map"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "source-table" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "stages" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.stage"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ } ]
+ },
+ "series" : {
+ "oneOf" : [ {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : {
+ "chart_type" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ },
+ "display_name" : {
+ "type" : "string"
+ },
+ "stacked" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "x" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "boolean", "string", "null", "number", "time", "datetime", "date" ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "name" ],
+ "additionalProperties" : false
+ },
+ "x_values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "y" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "boolean", "string", "null", "number", "time", "datetime", "date" ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "name" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "y_values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "x", "display_name", "chart_type" ],
+ "additionalProperties" : false
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "timeline_events" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "timestamp" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "name", "timestamp" ],
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "title" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "table" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.warehouse-schema.schema.table"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "owner" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "common_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "email" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "first_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "can_read" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_run" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "message" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "user_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "checkpoint_hi_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "is_active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "transform_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "run_method" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "checkpoint_lo_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "status" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "transform_entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "checkpoint_filter_field_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "end_time" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metered_as" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dag_run_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "transform_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "start_time" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "job_run_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "scheduled" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query"
+ }, {
+ "type" : "object",
+ "properties" : {
+ "database" : {
+ "type" : "null"
+ },
+ "lib/type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "native" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "collection" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "template-tags" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag-map"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "source-table" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "stages" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.stage"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ } ]
+ },
+ "collection" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.collections.schema.collection"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source_database_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "error" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "owner_email" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target_db_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "is_qbnewb" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_login" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "type" : "integer"
+ },
+ "email" : {
+ "type" : "string"
+ },
+ "is_data_analyst" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "is_superuser" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "tenant_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "first_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "date_joined" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "common_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id", "email" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "owner_user_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dependency" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source_readable" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "tag_ids" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "integer"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "table_dependencies" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.driver..native-query-deps.table-dep"
+ }, {
+ "$ref" : "#/components/schemas/metabase.driver..native-query-deps.transform-dep"
+ } ]
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "can_write" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "can_execute" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source" : {
+ "oneOf" : [ {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "query" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query"
+ }, {
+ "type" : "object",
+ "properties" : {
+ "database" : {
+ "type" : "null"
+ },
+ "lib/type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "native" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "collection" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "template-tags" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag-map"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "source-table" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "stages" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.stage"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ } ]
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source-incremental-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.transforms.schema.source-incremental-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "anyOf" : [ {
+ "const" : "query"
+ }, {
+ "const" : "query"
+ } ]
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "body" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source-database" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source-incremental-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.transforms.schema.source-incremental-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source-tables" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "alias" : {
+ "type" : "string"
+ },
+ "database_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "table_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "alias" ],
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "anyOf" : [ {
+ "const" : "python"
+ }, {
+ "const" : "python"
+ } ]
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "dashboard", "model", "transform", "code_editor", "document", "question", "metric", "adhoc" ]
+ },
+ "deleted" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "requestable_indexes" : {
+ "oneOf" : [ {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_checkpoint_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target" : {
+ "oneOf" : [ {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "database" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "anyOf" : [ {
+ "const" : "table"
+ }, {
+ "const" : "table"
+ } ]
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "database" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target-incremental-strategy" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.transforms.schema.target-incremental-strategy"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "anyOf" : [ {
+ "const" : "table-incremental"
+ }, {
+ "const" : "table-incremental"
+ } ]
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database_schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "sql_engine" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "used_tables" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "database_schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "run_trigger" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target_table_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "buffers" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "cursor" : {
+ "type" : "object",
+ "properties" : {
+ "column" : {
+ "type" : "integer"
+ },
+ "line" : {
+ "type" : "integer"
+ }
+ },
+ "required" : [ "line", "column" ],
+ "additionalProperties" : false
+ },
+ "id" : {
+ "type" : "string"
+ },
+ "selection" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "end" : {
+ "type" : "object",
+ "properties" : {
+ "column" : {
+ "type" : "integer"
+ },
+ "line" : {
+ "type" : "integer"
+ }
+ },
+ "required" : [ "line", "column" ],
+ "additionalProperties" : false
+ },
+ "start" : {
+ "type" : "object",
+ "properties" : {
+ "column" : {
+ "type" : "integer"
+ },
+ "line" : {
+ "type" : "integer"
+ }
+ },
+ "required" : [ "line", "column" ],
+ "additionalProperties" : false
+ },
+ "text" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "text", "start", "end" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source" : {
+ "type" : "object",
+ "properties" : {
+ "database_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "language" : {
+ "const" : "sql"
+ }
+ },
+ "required" : [ "language", "database_id" ],
+ "additionalProperties" : false
+ }
+ },
+ "required" : [ "id", "source", "cursor" ],
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "chart_configs" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "columns" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "boolean", "string", "null", "number", "time", "datetime", "date" ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "name" ],
+ "additionalProperties" : false
+ }
+ },
+ "rows" : {
+ "type" : "array",
+ "items" : {
+ "type" : "array",
+ "items" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ } ]
+ }
+ }
+ }
+ },
+ "required" : [ "columns", "rows" ],
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "display_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query"
+ }, {
+ "type" : "object",
+ "properties" : {
+ "database" : {
+ "type" : "null"
+ },
+ "lib/type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "native" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "collection" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "template-tags" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag-map"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "source-table" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "stages" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.stage"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ } ]
+ },
+ "series" : {
+ "oneOf" : [ {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : {
+ "chart_type" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ },
+ "display_name" : {
+ "type" : "string"
+ },
+ "stacked" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "x" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "boolean", "string", "null", "number", "time", "datetime", "date" ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "name" ],
+ "additionalProperties" : false
+ },
+ "x_values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "y" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "type" : "string"
+ },
+ "type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "boolean", "string", "null", "number", "time", "datetime", "date" ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "name" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "y_values" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "x", "display_name", "chart_type" ],
+ "additionalProperties" : false
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "timeline_events" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "timestamp" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "name", "timestamp" ],
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "title" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ }
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "type" ],
+ "additionalProperties" : false
+ } ]
+ }
+ },
+ "current_user_time" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "default_database_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "current_time_with_timezone" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ },
+ "metabase.metabot.context.recently-viewed-item" : {
+ "description" : "One of the user's recent views, trimmed to what the model gets told about it.",
+ "type" : "object",
+ "properties" : {
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
+ },
+ "metabase.metabot.context.research-plan" : {
+ "description" : "The in-progress Research plan the frontend serializes into `:research_plan` each turn (`ResearchPlanContext`).",
+ "type" : "object",
+ "properties" : {
+ "groups" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.metabot.context.research-plan-group"
+ }
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "timelines" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.metabot.context.research-plan-ref"
+ }
+ }
+ },
+ "required" : [ "name", "groups", "timelines" ],
+ "additionalProperties" : false
+ },
+ "metabase.metabot.context.research-plan-group" : {
+ "type" : "object",
+ "properties" : {
+ "block_id" : {
+ "type" : "string"
+ },
+ "dimensions" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.metabot.context.research-plan-ref"
+ }
+ },
+ "metric" : {
+ "$ref" : "#/components/schemas/metabase.metabot.context.research-plan-ref"
+ }
+ },
+ "required" : [ "block_id", "metric", "dimensions" ],
+ "additionalProperties" : false
+ },
+ "metabase.metabot.context.research-plan-ref" : {
+ "description" : "A named reference to a research-plan metric/dimension/timeline: what the frontend echoes back in\n `ResearchPlanContext`.",
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "anyOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "string"
+ } ]
+ },
+ "name" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "id", "name" ],
+ "additionalProperties" : false
+ },
+ "metabase.metabot.schema.client-message" : {
+ "description" : "One persisted message as the client models it.",
+ "type" : "object",
+ "properties" : {
+ "contextTokens" : {
+ "type" : "integer"
+ },
+ "externalId" : {
+ "type" : "string"
+ },
+ "id" : {
+ "type" : "string"
+ },
+ "parts" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.metabot.schema.client-message-part"
+ }
+ },
+ "role" : {
+ "type" : "string",
+ "enum" : [ "user", "agent" ]
+ },
+ "status" : {
+ "$ref" : "#/components/schemas/metabase.metabot.schema.client-message-status"
+ }
+ },
+ "required" : [ "id", "role", "parts", "status" ]
+ },
+ "metabase.metabot.schema.client-message-part" : {
+ "description" : "One part of a persisted message: its a text, tool call, or data blob.",
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "type" : "string"
+ },
+ "message" : {
+ "type" : "string"
+ },
+ "role" : {
+ "type" : "string",
+ "enum" : [ "user", "agent" ]
+ },
+ "type" : {
+ "const" : "text"
+ }
+ },
+ "required" : [ "id", "role", "type", "message" ]
+ }, {
+ "type" : "object",
+ "properties" : {
+ "args" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "type" : "string"
+ },
+ "is_error" : {
+ "type" : "boolean"
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "result" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "role" : {
+ "const" : "agent"
+ },
+ "status" : {
+ "type" : "string",
+ "enum" : [ "started", "ended" ]
+ },
+ "type" : {
+ "const" : "tool_call"
+ }
+ },
+ "required" : [ "id", "role", "type", "name", "args", "status" ]
+ }, {
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "type" : "string"
+ },
+ "part" : {
+ "type" : "object",
+ "properties" : {
+ "data" : { },
+ "type" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "type", "data" ]
+ },
+ "role" : {
+ "const" : "agent"
+ },
+ "type" : {
+ "const" : "data_part"
+ }
+ },
+ "required" : [ "id", "role", "type", "part" ]
+ } ]
+ },
+ "metabase.metabot.schema.client-message-status" : {
+ "description" : "Where a message's turn got to.",
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "type" : {
+ "const" : "done"
+ }
+ },
+ "required" : [ "type" ]
+ }, {
+ "type" : "object",
+ "properties" : {
+ "type" : {
+ "const" : "aborted"
+ }
+ },
+ "required" : [ "type" ]
+ }, {
+ "type" : "object",
+ "properties" : {
+ "type" : {
+ "const" : "in_progress"
+ }
+ },
+ "required" : [ "type" ]
+ }, {
+ "type" : "object",
+ "properties" : {
+ "error" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "object",
+ "properties" : {
+ "data" : { },
+ "message" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "type" : "string"
+ }
+ }
+ } ]
+ },
+ "type" : {
+ "const" : "errored"
+ }
+ },
+ "required" : [ "type", "error" ]
+ } ]
+ },
+ "metabase.metabot.schema.state" : {
+ "type" : "object",
+ "properties" : {
+ "chart-configs" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ },
+ "charts" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ },
+ "link-registry" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ },
+ "queries" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ },
+ "todos" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ },
+ "transforms" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "object",
+ "properties" : { }
+ }
+ }
+ }
+ },
+ "metabase.metabot.schema.state-map-key" : {
+ "description" : "A dynamic state-map key, normalized to its canonical string representation.",
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ },
+ "metabase.metrics.api.BreakoutValuesResponse" : {
+ "type" : "object",
+ "properties" : {
+ "col" : {
+ "type" : "object",
+ "properties" : { }
+ },
+ "values" : {
+ "type" : "array",
+ "items" : { }
+ }
+ },
+ "required" : [ "values", "col" ]
+ },
+ "metabase.metrics.api.DatasetRequest" : {
+ "description" : "Schema for POST /dataset request body.",
+ "type" : "object",
+ "properties" : {
+ "definition" : {
+ "$ref" : "#/components/schemas/metabase.metrics.api.Definition"
+ }
+ },
+ "required" : [ "definition" ],
+ "additionalProperties" : false
+ },
+ "metabase.metrics.api.DatasetResponse" : {
+ "description" : "Schema for POST /dataset response.",
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "object",
+ "properties" : {
+ "cols" : {
+ "type" : "array",
+ "items" : { }
+ },
+ "rows" : {
+ "type" : "array",
+ "items" : { }
+ }
+ },
+ "required" : [ "cols", "rows" ]
+ },
+ "row_count" : {
+ "description" : "value must be an integer greater or equal to than zero.",
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "status" : {
+ "enum" : [ "completed", "completed" ]
+ }
+ },
+ "required" : [ "status", "data", "row_count" ]
+ },
+ "metabase.metrics.api.Definition" : {
+ "description" : "Schema for the definition object within a dataset request.\n Uses expression-based contract for metric math support.",
+ "type" : "object",
+ "properties" : {
+ "expression" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.metric-math-expression"
+ },
+ "filters" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.instance-filters"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "projections" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.typed-projections"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "expression" ],
+ "additionalProperties" : false
+ },
+ "metabase.metrics.api.Metric" : {
+ "description" : "Schema for a Metric in list responses (without hydrated dimensions).",
+ "type" : "object",
+ "properties" : {
+ "collection" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "id", "name" ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "name" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "id", "name", "description", "collection_id" ]
+ },
+ "metabase.metrics.api.MetricWithDimensions" : {
+ "description" : "Schema for a Metric in list responses (without hydrated dimensions).",
+ "type" : "object",
+ "properties" : {
+ "dimension_mappings" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.metrics.dimension.dimension-mapping"
+ }
+ },
+ "collection" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "id", "name" ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dataset_query" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-or-empty-query"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "result_column_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "dimensions" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.metrics.dimension.dimension"
+ }
+ },
+ "database_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id", "name", "description", "collection_id", "dimensions", "dimension_mappings" ]
+ },
+ "metabase.metrics.api.RemappedValueResponse" : {
+ "description" : "Response schema for dimension remapping endpoint.\n Returns [value] if no remapping, or [value, display-name] if remapped.",
+ "anyOf" : [ {
+ "type" : "array",
+ "prefixItems" : [ { } ]
+ }, {
+ "type" : "array",
+ "prefixItems" : [ { }, {
+ "type" : "string"
+ } ]
+ } ]
+ },
+ "metabase.metrics.core.dimension" : {
+ "description" : "A metric dimension in its internal kebab-case shape, annotated with the rules that convert it to\n and from the snake_case wire shape. See [[metabase.metrics.dimension/dimension]].",
+ "$ref" : "#/components/schemas/metabase.metrics.dimension.dimension"
+ },
+ "metabase.metrics.core.dimension-mapping" : {
+ "description" : "A dimension mapping in its internal kebab-case shape, annotated with the rules that convert it to\n and from the snake_case wire shape. See [[metabase.metrics.dimension/dimension-mapping]].",
+ "$ref" : "#/components/schemas/metabase.metrics.dimension.dimension-mapping"
+ },
+ "metabase.metrics.dimension.dimension" : {
+ "description" : "Schema for a persisted dimension definition with status tracking.\n Persisted dimensions include additional metadata about their status\n and any issues that prevent them from being used.\n Note: target field references are stored in dimension-mappings, not here.",
+ "type" : "object",
+ "properties" : {
+ "sources" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.metrics.dimension.source"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "group" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.metrics.dimension.group"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "display-name" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-id"
+ },
+ "effective-type" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "status" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-status"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "has-field-values" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "status-message" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "default-temporal-unit" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension-interestingness" : {
+ "oneOf" : [ {
+ "type" : "number"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "default" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "semantic-type" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id" ]
+ },
+ "metabase.metrics.dimension.dimension-mapping" : {
+ "description" : "Schema for a dimension mapping.",
+ "type" : "object",
+ "properties" : {
+ "dimension-id" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-id"
+ },
+ "table-id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-mapping.target"
+ },
+ "type" : {
+ "description" : "Type of dimension mapping.",
+ "type" : "string",
+ "enum" : [ "table" ]
+ }
+ },
+ "required" : [ "dimension-id", "target" ],
+ "additionalProperties" : false
+ },
+ "metabase.metrics.dimension.group" : {
+ "description" : "Group descriptor for a dimension, indicating which table it belongs to.",
+ "type" : "object",
+ "properties" : {
+ "display-name" : {
+ "type" : "string"
+ },
+ "id" : {
+ "type" : "string"
+ },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "main", "connection" ]
+ }
+ },
+ "required" : [ "id", "type", "display-name" ]
+ },
+ "metabase.metrics.dimension.source" : {
+ "description" : "A dimension source annotated with its wire-encoding rules. Quirks preserved from the previous\n hand-rolled shape: entries keep their kebab-case `:field-id` key on the wire (no key renaming),\n `:field-id` is always present (nil when missing), and other keys (e.g. `:binning`) are dropped.",
+ "type" : "object",
+ "properties" : {
+ "field-id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-source.type"
+ }
+ },
+ "required" : [ "type" ]
+ },
+ "metabase.notification.api.admin.bulk-response" : {
+ "type" : "object",
+ "properties" : {
+ "updated" : {
+ "description" : "value must be an integer greater or equal to than zero.",
+ "type" : "integer",
+ "minimum" : 0
+ }
+ },
+ "required" : [ "updated" ]
+ },
+ "metabase.notification.api.admin.channel-entry" : {
+ "description" : "One channel delivery attempt within a tick.",
+ "type" : "object",
+ "properties" : {
+ "channel_type" : {
+ "type" : "string"
+ },
+ "error" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "status" : {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.run-status"
+ }
+ },
+ "required" : [ "channel_type", "status", "error" ],
+ "additionalProperties" : false
+ },
+ "metabase.notification.api.admin.detail-response" : {
+ "type" : "object",
+ "properties" : {
+ "last_check" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.run-summary"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload_type" : {
+ "type" : "string"
+ },
+ "payload_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "send_history" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.tick-send-entry"
+ }
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "check_history" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.run-summary"
+ }
+ },
+ "last_send" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.run-summary"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "type" : "string",
+ "format" : "date-time"
+ },
+ "created_at" : {
+ "type" : "string",
+ "format" : "date-time"
+ },
+ "active" : {
+ "type" : "boolean"
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id", "active", "creator_id", "created_at", "updated_at", "payload_type", "payload_id", "last_check", "last_send", "check_history", "send_history" ]
+ },
+ "metabase.notification.api.admin.list-response" : {
+ "type" : "object",
+ "properties" : {
+ "data" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.list-row"
+ }
+ },
+ "limit" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "offset" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater or equal to than zero.",
+ "type" : "integer",
+ "minimum" : 0
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "total" : {
+ "description" : "value must be an integer greater or equal to than zero.",
+ "type" : "integer",
+ "minimum" : 0
+ }
+ },
+ "required" : [ "data", "total", "limit", "offset" ]
+ },
+ "metabase.notification.api.admin.list-row" : {
+ "type" : "object",
+ "properties" : {
+ "last_check" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.run-summary"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload_type" : {
+ "type" : "string"
+ },
+ "payload_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "last_send" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.run-summary"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "type" : "string",
+ "format" : "date-time"
+ },
+ "created_at" : {
+ "type" : "string",
+ "format" : "date-time"
+ },
+ "active" : {
+ "type" : "boolean"
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id", "active", "creator_id", "created_at", "updated_at", "payload_type", "payload_id", "last_check", "last_send" ]
+ },
+ "metabase.notification.api.admin.run-status" : {
+ "type" : "string",
+ "enum" : [ "failing", "successful" ]
+ },
+ "metabase.notification.api.admin.run-summary" : {
+ "type" : "object",
+ "properties" : {
+ "at" : {
+ "type" : "string",
+ "format" : "date-time"
+ },
+ "error" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "status" : {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.run-status"
+ }
+ },
+ "required" : [ "at", "error", "status" ],
+ "additionalProperties" : false
+ },
+ "metabase.notification.api.admin.sort-column" : {
+ "type" : "string",
+ "enum" : [ "id", "last_send", "last_check", "card_name", "creator_name", "updated_at" ]
+ },
+ "metabase.notification.api.admin.sort-direction" : {
+ "type" : "string",
+ "enum" : [ "asc", "desc" ]
+ },
+ "metabase.notification.api.admin.tick-send-entry" : {
+ "description" : "One tick's worth of sends, rolled up across all channels that fired in that tick.",
+ "type" : "object",
+ "properties" : {
+ "at" : {
+ "type" : "string",
+ "format" : "date-time"
+ },
+ "channels" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.channel-entry"
+ }
+ },
+ "error" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "status" : {
+ "$ref" : "#/components/schemas/metabase.notification.api.admin.run-status"
+ }
+ },
+ "required" : [ "at", "status", "error", "channels" ],
+ "additionalProperties" : false
+ },
+ "metabase.notification.api.notification.CreateNotificationParams" : {
+ "description" : "Notification schema for a create request, or for sending one that was never saved. Like\n FullyHydratedNotification but restricts templates to user-provided types only (no handlebars-resource),\n and carries no ids since the body has no row of its own.",
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "payload_type" : {
+ "type" : "string",
+ "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
+ },
+ "handlers" : {
+ "type" : "array",
+ "items" : {
+ "description" : "Schema for :model/NotificationHandler on a create request.",
+ "type" : "object",
+ "properties" : {
+ "template_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "recipients" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.CreateNotificationRecipientParams"
+ }
+ },
+ "template" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_type" : { },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "channel_type" ],
+ "additionalProperties" : false
+ }
+ },
+ "creator" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.models.EchoedUser"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "internal_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.CreateNotificationCardParams"
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "subscriptions" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.CreateNotificationSubscriptionParams"
+ }
+ }
+ },
+ "required" : [ "payload_type", "payload" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "payload_type" : {
+ "type" : "string",
+ "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
+ },
+ "handlers" : {
+ "type" : "array",
+ "items" : {
+ "description" : "Schema for :model/NotificationHandler on a create request.",
+ "type" : "object",
+ "properties" : {
+ "template_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "recipients" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.CreateNotificationRecipientParams"
+ }
+ },
+ "template" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_type" : { },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "channel_type" ],
+ "additionalProperties" : false
+ }
+ },
+ "creator" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.models.EchoedUser"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "internal_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.models..SystemEventPayload.request"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "subscriptions" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.CreateNotificationSubscriptionParams"
+ }
+ }
+ },
+ "required" : [ "payload_type" ],
+ "additionalProperties" : false
+ } ]
+ },
+ "metabase.notification.api.notification.NotificationApiUpdateInput" : {
+ "description" : "Notification schema for an update request, restricted to what `notification-update-spec` writes. On PUT\n the URL, not the body, identifies the target (RFC 9110 §9.3.4), so a client-sent id is stripped.",
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "handlers" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "template_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "recipients" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
+ }
+ },
+ "template" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_type" : { },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "channel_type" ],
+ "additionalProperties" : false
+ }
+ },
+ "internal_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationCardUpdate"
+ },
+ "payload_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload_type" : {
+ "type" : "string",
+ "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
+ },
+ "subscriptions" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
+ }
+ }
+ },
+ "required" : [ "payload_type", "payload" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "handlers" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "template_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "recipients" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
+ }
+ },
+ "template" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_type" : { },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "channel_type" ],
+ "additionalProperties" : false
+ }
+ },
+ "internal_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.models..SystemEventPayload.request"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload_type" : {
+ "type" : "string",
+ "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
+ },
+ "subscriptions" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
+ }
+ }
+ },
+ "required" : [ "payload_type" ],
+ "additionalProperties" : false
+ } ]
+ },
+ "metabase.notification.models..SystemEventPayload.request" : {
+ "description" : "The `:payload` of a system event notification as a client may send it: the event topic, plus the `:disable_links`\n `POST /api/notification` stamps on. The event map itself is the server's to supply, so a request carries none.",
+ "type" : "object",
+ "properties" : {
+ "disable_links" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "event_topic" : { }
+ },
+ "additionalProperties" : false
+ },
+ "metabase.notification.models.CreateNotificationCardParams" : {
+ "description" : "Schema for :model/NotificationCard on a create request.",
+ "type" : "object",
+ "properties" : {
+ "card" : {
+ "oneOf" : [ {
+ "description" : "What an update (or insert) of a Card accepts: every column of `:report_card` except `id`, all optional, plus `:verified-result-metadata?` consumed by the model's hooks.",
+ "type" : "object",
+ "properties" : {
+ "enable_embedding" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "visualization_settings" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.visualization-settings"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension_mappings" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.dimension-mapping"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "cache_invalidated_at" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_preview" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "initially_published_at" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "view_count" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dataset_query" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.dataset-query"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameter_mappings" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.parameter-mapping"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabot_chart_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "embedding_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "verified-result-metadata?" : {
+ "type" : "boolean"
+ },
+ "made_public_by_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "archived" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimensions" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.dimension"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query_description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "embedding_params" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid embedding params map.",
+ "oneOf" : [ {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string",
+ "enum" : [ "disabled", "enabled", "locked" ]
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dataset_query_metrics_v2_migration_backup" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "table_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "document_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "result_metadata" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.result-metadata"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source_card_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "cache_ttl" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "display" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_used_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase_version" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "archived_directly" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "card_schema" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabot_conversation_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dashboard_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id" ],
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
},
- "collection_id" : {
+ "card_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "disable_links" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "notification_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "send_condition" : {
+ "type" : "string",
+ "enum" : [ "goal_below", "has_result", "goal_above" ]
+ },
+ "send_once" : {
+ "type" : "boolean"
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "card_id" ],
+ "additionalProperties" : false
+ },
+ "metabase.notification.models.CreateNotificationHandlerParams" : {
+ "description" : "Schema for :model/NotificationHandler on a create request.",
+ "type" : "object",
+ "properties" : {
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_type" : { },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "template_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
"oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "channel_type" ],
+ "additionalProperties" : false
+ },
+ "metabase.notification.models.CreateNotificationRecipientParams" : {
+ "description" : "Schema for :model/NotificationRecipient on a create request.",
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "details" : { },
+ "notification_handler_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "permissions_group_id" : { },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "user" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.models.EchoedUser"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "user_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }
+ },
+ "required" : [ "type", "user_id" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "details" : { },
+ "notification_handler_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "permissions_group" : {
+ "oneOf" : [ {
+ "description" : "A PermissionsGroup as selected from the app DB: every column of `:permissions_group`.",
+ "type" : "object",
+ "properties" : {
+ "entity_id" : {
+ "type" : "string"
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "is_tenant_group" : {
+ "type" : "boolean"
+ },
+ "magic_group_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "members" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.permissions.schema..permissions-group.member"
+ }
+ },
+ "name" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "id", "name", "entity_id", "magic_group_type", "is_tenant_group" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "permissions_group_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "user_id" : { }
+ },
+ "required" : [ "type", "permissions_group_id" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "details" : {
+ "type" : "object",
+ "properties" : {
+ "channel_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "value" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "value" ],
+ "additionalProperties" : false
+ },
+ "notification_handler_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "permissions_group_id" : { },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "user_id" : { }
+ },
+ "required" : [ "type", "details" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "details" : {
+ "type" : "object",
+ "properties" : {
+ "is_optional" : {
+ "type" : "boolean"
+ },
+ "pattern" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "pattern" ],
+ "additionalProperties" : false
+ },
+ "notification_handler_id" : {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
"minimum" : 1
- }, {
+ },
+ "permissions_group_id" : { },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "user_id" : { }
+ },
+ "required" : [ "type", "details" ],
+ "additionalProperties" : false
+ } ]
+ },
+ "metabase.notification.models.CreateNotificationSubscriptionParams" : {
+ "description" : "Schema for :model/NotificationSubscription on a create request.",
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "cron_schedule" : {
"type" : "null"
- } ]
+ },
+ "event_name" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ },
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ]
+ },
+ "ui_display_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
},
- "description" : {
- "oneOf" : [ {
+ "required" : [ "type", "event_name" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "cron_schedule" : {
"type" : "string"
- }, {
+ },
+ "event_name" : {
"type" : "null"
- } ]
- }
- },
- "required" : [ "id", "name", "description", "collection_id", "dimensions", "dimension_mappings" ]
- },
- "metabase.metrics.api.RemappedValueResponse" : {
- "description" : "Response schema for dimension remapping endpoint.\n Returns [value] if no remapping, or [value, display-name] if remapped.",
- "anyOf" : [ {
- "type" : "array",
- "prefixItems" : [ { } ]
- }, {
- "type" : "array",
- "prefixItems" : [ { }, {
- "type" : "string"
- } ]
+ },
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ]
+ },
+ "ui_display_type" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "cron/raw", "cron/builder" ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "type", "cron_schedule" ],
+ "additionalProperties" : false
} ]
},
- "metabase.metrics.core.dimension" : {
- "description" : "A metric dimension in its internal kebab-case shape, annotated with the rules that convert it to\n and from the snake_case wire shape. See [[metabase.metrics.dimension/dimension]].",
- "$ref" : "#/components/schemas/metabase.metrics.dimension.dimension"
- },
- "metabase.metrics.core.dimension-mapping" : {
- "description" : "A dimension mapping in its internal kebab-case shape, annotated with the rules that convert it to\n and from the snake_case wire shape. See [[metabase.metrics.dimension/dimension-mapping]].",
- "$ref" : "#/components/schemas/metabase.metrics.dimension.dimension-mapping"
- },
- "metabase.metrics.dimension.dimension" : {
- "description" : "Schema for a persisted dimension definition with status tracking.\n Persisted dimensions include additional metadata about their status\n and any issues that prevent them from being used.\n Note: target field references are stored in dimension-mappings, not here.",
+ "metabase.notification.models.EchoedUser" : {
+ "description" : "A User as selected from the app DB: every column of `:core_user` that the model selects by default, plus `:common_name` added by the model's after-select hook.",
"type" : "object",
"properties" : {
- "sources" : {
- "oneOf" : [ {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.metrics.dimension.source"
- }
- }, {
- "type" : "null"
- } ]
- },
- "group" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.metrics.dimension.group"
- }, {
- "type" : "null"
- } ]
+ "is_qbnewb" : {
+ "type" : "boolean"
},
- "display-name" : {
+ "last_login" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
"id" : {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-id"
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
},
- "effective-type" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
+ "email" : {
+ "type" : "string"
},
- "name" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
+ "is_data_analyst" : {
+ "type" : "boolean"
},
- "status" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-status"
- }, {
- "type" : "null"
- } ]
+ "is_superuser" : {
+ "type" : "boolean"
},
- "has-field-values" : {
+ "tenant_id" : {
"oneOf" : [ {
- "type" : "string"
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
}, {
"type" : "null"
} ]
},
- "status-message" : {
+ "last_name" : {
"oneOf" : [ {
"type" : "string"
}, {
"type" : "null"
} ]
},
- "default-temporal-unit" : {
+ "first_name" : {
"oneOf" : [ {
"type" : "string"
}, {
"type" : "null"
} ]
},
- "dimension-interestingness" : {
- "oneOf" : [ {
- "type" : "number"
- }, {
- "type" : "null"
- } ]
- },
- "default" : {
- "oneOf" : [ {
- "type" : "boolean"
- }, {
- "type" : "null"
- } ]
- },
- "semantic-type" : {
+ "date_joined" : {
"oneOf" : [ {
- "type" : "string"
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "description" : {
+ "common_name" : {
"oneOf" : [ {
"type" : "string"
}, {
@@ -12897,111 +23349,394 @@
} ]
}
},
- "required" : [ "id" ]
+ "required" : [ "id", "email", "first_name", "last_name", "date_joined", "last_login", "is_superuser", "is_qbnewb", "tenant_id", "is_data_analyst" ],
+ "additionalProperties" : false
},
- "metabase.metrics.dimension.dimension-mapping" : {
- "description" : "Schema for a dimension mapping.",
- "type" : "object",
- "properties" : {
- "dimension-id" : {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-id"
+ "metabase.notification.models.FullyHydratedNotification" : {
+ "description" : "Fully hydrated notification.",
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "payload_type" : {
+ "type" : "string",
+ "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
+ },
+ "payload_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "triggering_subscription" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "handlers" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "template_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "recipients" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
+ }
+ },
+ "template" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_type" : { },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "channel_type" ],
+ "additionalProperties" : false
+ }
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "creator" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.models.EchoedUser"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "internal_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "subscriptions" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
+ }
+ }
},
- "table-id" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
- }, {
- "type" : "null"
- } ]
+ "required" : [ "payload_type", "payload" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "payload_type" : {
+ "type" : "string",
+ "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
+ },
+ "payload_id" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "triggering_subscription" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "handlers" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "template_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "recipients" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
+ }
+ },
+ "template" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel_type" : { },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "channel" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "channel_type" ],
+ "additionalProperties" : false
+ }
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "creator" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.models.EchoedUser"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "internal_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "active" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "payload" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.notification.models.SystemEventPayload"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "subscriptions" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
+ }
+ }
},
- "target" : { },
- "type" : {
- "description" : "Type of dimension mapping.",
- "type" : "string",
- "enum" : [ "table" ]
- }
- },
- "required" : [ "dimension-id", "target" ]
+ "required" : [ "payload_type" ],
+ "additionalProperties" : false
+ } ]
},
- "metabase.metrics.dimension.group" : {
- "description" : "Group descriptor for a dimension, indicating which table it belongs to.",
+ "metabase.notification.models.NotificationCard" : {
+ "description" : "Schema for :model/NotificationCard.",
"type" : "object",
"properties" : {
- "display-name" : {
- "type" : "string"
- },
"id" : {
- "type" : "string"
- },
- "type" : {
- "type" : "string",
- "enum" : [ "main", "connection" ]
- }
- },
- "required" : [ "id", "type", "display-name" ]
- },
- "metabase.metrics.dimension.source" : {
- "description" : "A dimension source annotated with its wire-encoding rules. Quirks preserved from the previous\n hand-rolled shape: entries keep their kebab-case `:field-id` key on the wire (no key renaming),\n `:field-id` is always present (nil when missing), and other keys (e.g. `:binning`) are dropped.",
- "type" : "object",
- "properties" : {
- "field-id" : {
- "oneOf" : [ {
- "type" : "integer"
- }, {
- "type" : "null"
- } ]
- },
- "type" : {
- "$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-source.type"
- }
- },
- "required" : [ "type" ]
- },
- "metabase.notification.api.admin.bulk-response" : {
- "type" : "object",
- "properties" : {
- "updated" : {
- "description" : "value must be an integer greater or equal to than zero.",
- "type" : "integer",
- "minimum" : 0
- }
- },
- "required" : [ "updated" ]
- },
- "metabase.notification.api.admin.channel-entry" : {
- "description" : "One channel delivery attempt within a tick.",
- "type" : "object",
- "properties" : {
- "channel_type" : {
- "type" : "string"
- },
- "error" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
- },
- "status" : {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.run-status"
- }
- },
- "required" : [ "channel_type", "status", "error" ],
- "additionalProperties" : false
- },
- "metabase.notification.api.admin.detail-response" : {
- "type" : "object",
- "properties" : {
- "last_check" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.run-summary"
- }, {
- "type" : "null"
- } ]
- },
- "payload_type" : {
- "type" : "string"
- },
- "payload_id" : {
"oneOf" : [ {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
@@ -13010,102 +23745,483 @@
"type" : "null"
} ]
},
- "send_history" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.tick-send-entry"
- }
+ "send_condition" : {
+ "type" : "string",
+ "enum" : [ "goal_below", "has_result", "goal_above" ]
},
- "id" : {
+ "card_id" : {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
"minimum" : 1
},
- "check_history" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.run-summary"
- }
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
},
- "last_send" : {
+ "card" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.run-summary"
+ "description" : "What an update (or insert) of a Card accepts: every column of `:report_card` except `id`, all optional, plus `:verified-result-metadata?` consumed by the model's hooks.",
+ "type" : "object",
+ "properties" : {
+ "enable_embedding" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "visualization_settings" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.visualization-settings"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimension_mappings" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.dimension-mapping"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "cache_invalidated_at" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_preview" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "initially_published_at" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "view_count" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dataset_query" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.dataset-query"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameter_mappings" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.parameter-mapping"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabot_chart_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "embedding_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "verified-result-metadata?" : {
+ "type" : "boolean"
+ },
+ "made_public_by_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "archived" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dimensions" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.dimension"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query_description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "embedding_params" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid embedding params map.",
+ "oneOf" : [ {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string",
+ "enum" : [ "disabled", "enabled", "locked" ]
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dataset_query_metrics_v2_migration_backup" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "table_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "legacy_query" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "document_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "result_metadata" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.result-metadata"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "source_card_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "query_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "cache_ttl" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "display" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_used_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameters" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.parameter"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "creator_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabase_version" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "archived_directly" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "public_uuid_prefix" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "card_schema" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabot_conversation_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dashboard_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id" ],
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
},
- "updated_at" : {
- "type" : "string",
- "format" : "date-time"
- },
"created_at" : {
- "type" : "string",
- "format" : "date-time"
- },
- "active" : {
- "type" : "boolean"
- },
- "creator_id" : {
"oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
- }
- },
- "required" : [ "id", "active", "creator_id", "created_at", "updated_at", "payload_type", "payload_id", "last_check", "last_send", "check_history", "send_history" ]
- },
- "metabase.notification.api.admin.list-response" : {
- "type" : "object",
- "properties" : {
- "data" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.list-row"
- }
},
- "limit" : {
+ "disable_links" : {
"oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "type" : "boolean"
}, {
"type" : "null"
} ]
},
- "offset" : {
+ "notification_id" : {
"oneOf" : [ {
- "description" : "value must be an integer greater or equal to than zero.",
+ "description" : "value must be an integer greater than zero.",
"type" : "integer",
- "minimum" : 0
+ "minimum" : 1
}, {
"type" : "null"
} ]
},
- "total" : {
- "description" : "value must be an integer greater or equal to than zero.",
+ "send_once" : {
+ "type" : "boolean"
+ }
+ },
+ "required" : [ "card_id" ],
+ "additionalProperties" : false
+ },
+ "metabase.notification.models.NotificationCardUpdate" : {
+ "description" : "::NotificationCard restricted to what the update spec writes - `:id` comes from the URL's notification.",
+ "type" : "object",
+ "properties" : {
+ "card_id" : {
+ "description" : "value must be an integer greater than zero.",
"type" : "integer",
- "minimum" : 0
+ "minimum" : 1
+ },
+ "send_condition" : {
+ "type" : "string",
+ "enum" : [ "goal_below", "has_result", "goal_above" ]
+ },
+ "send_once" : {
+ "type" : "boolean"
}
},
- "required" : [ "data", "total", "limit", "offset" ]
+ "required" : [ "card_id" ],
+ "additionalProperties" : false
},
- "metabase.notification.api.admin.list-row" : {
+ "metabase.notification.models.NotificationHandler" : {
"type" : "object",
"properties" : {
- "last_check" : {
+ "active" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.run-summary"
+ "type" : "boolean"
}, {
"type" : "null"
} ]
},
- "payload_type" : {
- "type" : "string"
- },
- "payload_id" : {
+ "channel_id" : {
"oneOf" : [ {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
@@ -13114,30 +24230,31 @@
"type" : "null"
} ]
},
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "last_send" : {
+ "channel_type" : { },
+ "created_at" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.run-summary"
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "updated_at" : {
- "type" : "string",
- "format" : "date-time"
- },
- "created_at" : {
- "type" : "string",
- "format" : "date-time"
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "active" : {
- "type" : "boolean"
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "creator_id" : {
+ "template_id" : {
"oneOf" : [ {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
@@ -13145,978 +24262,881 @@
}, {
"type" : "null"
} ]
- }
- },
- "required" : [ "id", "active", "creator_id", "created_at", "updated_at", "payload_type", "payload_id", "last_check", "last_send" ]
- },
- "metabase.notification.api.admin.run-status" : {
- "type" : "string",
- "enum" : [ "failing", "successful" ]
- },
- "metabase.notification.api.admin.run-summary" : {
- "type" : "object",
- "properties" : {
- "at" : {
- "type" : "string",
- "format" : "date-time"
- },
- "error" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
- },
- "status" : {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.run-status"
- }
- },
- "required" : [ "at", "error", "status" ],
- "additionalProperties" : false
- },
- "metabase.notification.api.admin.sort-column" : {
- "type" : "string",
- "enum" : [ "id", "last_send", "last_check", "card_name", "creator_name", "updated_at" ]
- },
- "metabase.notification.api.admin.sort-direction" : {
- "type" : "string",
- "enum" : [ "asc", "desc" ]
- },
- "metabase.notification.api.admin.tick-send-entry" : {
- "description" : "One tick's worth of sends, rolled up across all channels that fired in that tick.",
- "type" : "object",
- "properties" : {
- "at" : {
- "type" : "string",
- "format" : "date-time"
- },
- "channels" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.channel-entry"
- }
},
- "error" : {
+ "updated_at" : {
"oneOf" : [ {
- "type" : "string"
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
- },
- "status" : {
- "$ref" : "#/components/schemas/metabase.notification.api.admin.run-status"
}
},
- "required" : [ "at", "status", "error", "channels" ],
+ "required" : [ "channel_type" ],
"additionalProperties" : false
},
- "metabase.notification.api.notification.CreateNotificationParams" : {
- "description" : "Notification schema for a create request, or for sending one that was never saved. Like\n FullyHydratedNotification but restricts templates to user-provided types only (no handlebars-resource),\n and carries no ids since the body has no row of its own.",
+ "metabase.notification.models.NotificationRecipient" : {
+ "description" : "Schema for :model/NotificationRecipient.",
"oneOf" : [ {
"type" : "object",
"properties" : {
- "active" : {
+ "user_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "user" : {
"oneOf" : [ {
- "type" : "boolean"
+ "$ref" : "#/components/schemas/metabase.notification.models.EchoedUser"
}, {
"type" : "null"
} ]
},
- "creator" : {
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "notification_handler_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "permissions_group_id" : { },
+ "updated_at" : {
"oneOf" : [ {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "creator_id" : {
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
+ },
+ "details" : { },
+ "created_at" : {
"oneOf" : [ {
- "type" : "integer"
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
+ }
+ },
+ "required" : [ "type", "user_id" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "user_id" : { },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "handlers" : {
- "type" : "array",
- "items" : {
- "description" : "Schema for :model/NotificationHandler on a create request.",
+ "notification_handler_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "permissions_group_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
+ },
+ "details" : { },
+ "created_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "permissions_group" : {
+ "oneOf" : [ {
+ "description" : "A PermissionsGroup as selected from the app DB: every column of `:permissions_group`.",
"type" : "object",
"properties" : {
- "active" : {
- "oneOf" : [ {
- "type" : "boolean"
- }, {
- "type" : "null"
- } ]
- },
- "channel" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
- }, {
- "type" : "null"
- } ]
- },
- "channel_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
+ "entity_id" : {
+ "type" : "string"
},
- "channel_type" : { },
- "notification_id" : {
+ "id" : {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
"minimum" : 1
},
- "recipients" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.CreateNotificationRecipientParams"
- }
+ "is_tenant_group" : {
+ "type" : "boolean"
},
- "template" : {
+ "magic_group_type" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "template_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
+ "members" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.permissions.schema..permissions-group.member"
+ }
+ },
+ "name" : {
+ "type" : "string"
}
},
- "required" : [ "channel_type" ]
- }
- },
- "payload" : {
- "$ref" : "#/components/schemas/metabase.notification.models.CreateNotificationCardParams"
- },
- "payload_type" : {
- "type" : "string",
- "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
- },
- "subscriptions" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.CreateNotificationSubscriptionParams"
- }
+ "required" : [ "id", "name", "entity_id", "magic_group_type", "is_tenant_group" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "null"
+ } ]
}
},
- "required" : [ "payload_type", "payload" ]
+ "required" : [ "type", "permissions_group_id" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
- "active" : {
+ "created_at" : {
"oneOf" : [ {
- "type" : "boolean"
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "creator" : {
+ "details" : {
+ "type" : "object",
+ "properties" : {
+ "channel_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "value" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "value" ],
+ "additionalProperties" : false
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "notification_handler_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "permissions_group_id" : { },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
+ },
+ "updated_at" : {
"oneOf" : [ {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "creator_id" : {
+ "user_id" : { }
+ },
+ "required" : [ "type", "details" ],
+ "additionalProperties" : false
+ }, {
+ "type" : "object",
+ "properties" : {
+ "created_at" : {
"oneOf" : [ {
- "type" : "integer"
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "handlers" : {
- "type" : "array",
- "items" : {
- "description" : "Schema for :model/NotificationHandler on a create request.",
- "type" : "object",
- "properties" : {
- "active" : {
- "oneOf" : [ {
- "type" : "boolean"
- }, {
- "type" : "null"
- } ]
- },
- "channel" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
- }, {
- "type" : "null"
- } ]
- },
- "channel_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- },
- "channel_type" : { },
- "notification_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "recipients" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.CreateNotificationRecipientParams"
- }
- },
- "template" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
- }, {
- "type" : "null"
- } ]
- },
- "template_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- }
+ "details" : {
+ "type" : "object",
+ "properties" : {
+ "is_optional" : {
+ "type" : "boolean"
},
- "required" : [ "channel_type" ]
- }
+ "pattern" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "pattern" ],
+ "additionalProperties" : false
},
- "payload_type" : {
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "notification_handler_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "permissions_group_id" : { },
+ "type" : {
"type" : "string",
- "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
+ "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
},
- "subscriptions" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.CreateNotificationSubscriptionParams"
- }
- }
+ "updated_at" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "user_id" : { }
},
- "required" : [ "payload_type" ]
+ "required" : [ "type", "details" ],
+ "additionalProperties" : false
} ]
},
- "metabase.notification.api.notification.NotificationApiUpdateInput" : {
- "description" : "Notification schema for an update request, restricted to what `notification-update-spec` writes. On PUT\n the URL, not the body, identifies the target (RFC 9110 §9.3.4), so a client-sent id is stripped.",
+ "metabase.notification.models.NotificationSubscription" : {
+ "description" : "Schema for :model/NotificationSubscription.",
"oneOf" : [ {
"type" : "object",
"properties" : {
- "active" : {
+ "created_at" : {
"oneOf" : [ {
- "type" : "boolean"
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "creator_id" : {
- "oneOf" : [ {
- "type" : "integer"
+ "cron_schedule" : {
+ "type" : "null"
+ },
+ "event_name" : {
+ "anyOf" : [ {
+ "type" : "string"
}, {
- "type" : "null"
+ "type" : "string"
} ]
},
- "handlers" : {
- "type" : "array",
- "items" : {
- "type" : "object",
- "properties" : {
- "template_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- },
- "channel_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "recipients" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
- }
- },
- "template" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
- }, {
- "type" : "null"
- } ]
- },
- "channel_type" : { },
- "channel" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
- }, {
- "type" : "null"
- } ]
- },
- "notification_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "active" : {
- "oneOf" : [ {
- "type" : "boolean"
- }, {
- "type" : "null"
- } ]
- }
- },
- "required" : [ "channel_type" ]
- }
+ "id" : {
+ "type" : "integer"
},
- "payload" : {
- "$ref" : "#/components/schemas/metabase.notification.models.NotificationCardUpdate"
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "payload_id" : {
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ]
+ },
+ "ui_display_type" : {
"oneOf" : [ {
- "type" : "integer"
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
- },
- "payload_type" : {
- "type" : "string",
- "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
- },
- "subscriptions" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
- }
}
},
- "required" : [ "payload_type", "payload" ]
+ "required" : [ "type", "event_name" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
- "active" : {
+ "created_at" : {
"oneOf" : [ {
- "type" : "boolean"
+ "anyOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "description" : "value must be a valid date string",
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "creator_id" : {
+ "cron_schedule" : {
+ "type" : "string"
+ },
+ "event_name" : {
+ "type" : "null"
+ },
+ "id" : {
+ "type" : "integer"
+ },
+ "notification_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "type" : {
+ "type" : "string",
+ "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ]
+ },
+ "ui_display_type" : {
"oneOf" : [ {
- "type" : "integer"
+ "type" : "string",
+ "enum" : [ "cron/raw", "cron/builder" ]
}, {
"type" : "null"
} ]
- },
- "handlers" : {
+ }
+ },
+ "required" : [ "type", "cron_schedule" ],
+ "additionalProperties" : false
+ } ]
+ },
+ "metabase.notification.models.SystemEventPayload" : {
+ "description" : "The `:payload` of a system event notification as a client may send it: the event topic, plus the `:disable_links`\n `POST /api/notification` stamps on. The event map itself is the server's to supply, so a request carries none.",
+ "type" : "object",
+ "properties" : {
+ "disable_links" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "event_info" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "event_topic" : { }
+ },
+ "additionalProperties" : false
+ },
+ "metabase.parameters.schema..api.parameter-values" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-values"
+ },
+ "metabase.parameters.schema.legacy-ref" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-expression-ref"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-field-ref"
+ } ]
+ },
+ "metabase.parameters.schema.parameter" : {
+ "description" : "parameter must be a map with :id and :type keys",
+ "type" : "object",
+ "properties" : {
+ "filteringParameters" : {
+ "oneOf" : [ {
"type" : "array",
"items" : {
- "type" : "object",
- "properties" : {
- "template_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- },
- "channel_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "recipients" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
- }
- },
- "template" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
- }, {
- "type" : "null"
- } ]
- },
- "channel_type" : { },
- "channel" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
- }, {
- "type" : "null"
- } ]
- },
- "notification_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "active" : {
- "oneOf" : [ {
- "type" : "boolean"
- }, {
- "type" : "null"
- } ]
- }
- },
- "required" : [ "channel_type" ]
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
}
- },
- "payload_id" : {
- "oneOf" : [ {
- "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "mappings" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
+ }
}, {
- "type" : "null"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
+ },
+ "uniqueItems" : true
} ]
- },
- "payload_type" : {
- "type" : "string",
- "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
- },
- "subscriptions" : {
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "sectionId" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "values_source_config" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.values-source-config"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "hasVariableTemplateTagTarget" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "display-name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
+ },
+ "position" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "slug" : {
+ "type" : "string"
+ },
+ "value" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ },
+ "required" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "values_query_type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.values-query-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.type"
+ },
+ "temporal_units" : {
+ "oneOf" : [ {
"type" : "array",
"items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
+ "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
}
- }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
+ },
+ "values_source_type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.values-source-type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "options" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.options"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ },
+ "isMultiSelect" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id", "type" ],
+ "additionalProperties" : false
+ },
+ "metabase.parameters.schema.parameter-mapping" : {
+ "description" : "parameter_mapping must be a map with :parameter_id and :target keys",
+ "type" : "object",
+ "properties" : {
+ "card_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameter_id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
+ },
+ "target" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
+ }
+ },
+ "required" : [ "parameter_id", "target" ],
+ "additionalProperties" : false
+ },
+ "metabase.parameters.schema.parameter-mappings" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
+ }
+ },
+ "metabase.parameters.schema.parameter-values" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-with-value"
+ }
+ },
+ "metabase.parameters.schema.parameter-with-value" : {
+ "description" : "parameter must be a map with an :id key",
+ "type" : "object",
+ "properties" : {
+ "default" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ },
+ "id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ },
+ "name" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "options" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.options"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "slug" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "target" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.type"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "value" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ }
+ },
+ "required" : [ "id" ],
+ "additionalProperties" : false
+ },
+ "metabase.parameters.schema.parameters" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
+ }
+ },
+ "metabase.parameters.schema.values-query-type" : {
+ "type" : "string",
+ "enum" : [ "none", "list", "search" ]
+ },
+ "metabase.parameters.schema.values-source-config" : {
+ "description" : "Schema for valid source_options within a Parameter",
+ "type" : "object",
+ "properties" : {
+ "card_id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ },
+ "label_field" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.legacy-ref"
+ },
+ "value_field" : {
+ "$ref" : "#/components/schemas/metabase.parameters.schema.legacy-ref"
+ },
+ "values" : { }
+ },
+ "additionalProperties" : false
+ },
+ "metabase.parameters.schema.values-source-type" : {
+ "type" : "string",
+ "enum" : [ "static-list", "card" ]
+ },
+ "metabase.permissions-rest.schema.attribute-name" : {
+ "description" : "a user attribute name",
+ "type" : "string",
+ "minLength" : 1
+ },
+ "metabase.permissions-rest.schema.attribute-remapping" : {
+ "description" : "a field name, a field id, or a parameter target",
+ "anyOf" : [ {
+ "type" : "string",
+ "minLength" : 1
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ }, {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
+ } ]
+ },
+ "metabase.permissions-rest.schema.attribute-remappings" : {
+ "description" : "a map of user attribute name -> the field or parameter target it is remapped onto",
+ "type" : "object",
+ "additionalProperties" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.attribute-remapping"
+ }, { } ]
+ }
+ },
+ "metabase.permissions-rest.schema.data-perms" : {
+ "type" : "object",
+ "properties" : {
+ "native" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.native"
},
- "required" : [ "payload_type" ]
- } ]
+ "schemas" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.schemas"
+ }
+ },
+ "additionalProperties" : false
},
- "metabase.notification.models.CreateNotificationCardParams" : {
- "description" : "Schema for :model/NotificationCard on a create request.",
+ "metabase.permissions-rest.schema.db-perms" : {
+ "description" : "the permissions one group has on one database",
"type" : "object",
"properties" : {
- "card" : {
- "oneOf" : [ {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- }, {
- "type" : "null"
- } ]
+ "create-queries" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.schemas"
},
- "card_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "data" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.strict-data-perms"
},
- "notification_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
+ "data-model" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.strict-data-perms"
},
- "send_condition" : {
+ "details" : {
"type" : "string",
- "enum" : [ "goal_below", "has_result", "goal_above" ]
+ "enum" : [ "yes", "no" ]
},
- "send_once" : {
- "type" : "boolean"
+ "download" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.strict-data-perms"
+ },
+ "transforms" : {
+ "type" : "string",
+ "enum" : [ "yes", "no" ]
+ },
+ "view-data" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.schemas"
}
},
- "required" : [ "card_id" ]
+ "additionalProperties" : false
},
- "metabase.notification.models.CreateNotificationHandlerParams" : {
- "description" : "Schema for :model/NotificationHandler on a create request.",
+ "metabase.permissions-rest.schema.decodable-keyword-int" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "metabase.permissions-rest.schema.graph-update-request" : {
+ "description" : "the permissions graph, plus the sandboxes and connection impersonations to write with it",
"type" : "object",
"properties" : {
- "active" : {
+ "force" : {
"oneOf" : [ {
"type" : "boolean"
}, {
"type" : "null"
} ]
},
- "channel_id" : {
+ "groups" : {
"oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "type" : "object",
+ "additionalProperties" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.db-perms"
+ }, { } ]
+ }
+ }, {
+ "anyOf" : [ {
+ "type" : "null"
+ }, { } ]
+ } ]
+ }
+ }, { } ]
+ },
+ "impersonations" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.impersonation-update"
+ }
}, {
"type" : "null"
} ]
},
- "channel_type" : { },
- "notification_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "revision" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer.",
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
},
- "template_id" : {
+ "sandboxes" : {
"oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.sandbox-update"
+ }
}, {
"type" : "null"
} ]
}
},
- "required" : [ "channel_type" ]
+ "required" : [ "groups" ],
+ "additionalProperties" : false
},
- "metabase.notification.models.CreateNotificationRecipientParams" : {
- "description" : "Schema for :model/NotificationRecipient on a create request.",
- "oneOf" : [ {
- "type" : "object",
- "properties" : {
- "details" : { },
- "notification_handler_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "permissions_group_id" : { },
- "type" : {
- "type" : "string",
- "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
- },
- "user_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }
- },
- "required" : [ "type", "user_id" ]
- }, {
- "type" : "object",
- "properties" : {
- "details" : { },
- "notification_handler_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "permissions_group_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "type" : {
- "type" : "string",
- "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
- },
- "user_id" : { }
- },
- "required" : [ "type", "permissions_group_id" ]
- }, {
- "type" : "object",
- "properties" : {
- "details" : {
- "type" : "object",
- "properties" : {
- "channel_id" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
- },
- "value" : { }
- },
- "required" : [ "value" ],
- "additionalProperties" : false
- },
- "notification_handler_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "permissions_group_id" : { },
- "type" : {
- "type" : "string",
- "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
- },
- "user_id" : { }
- },
- "required" : [ "type", "details" ]
- }, {
- "type" : "object",
- "properties" : {
- "details" : {
- "type" : "object",
- "properties" : {
- "is_optional" : {
- "type" : "boolean"
- },
- "pattern" : {
- "type" : "string"
- }
- },
- "required" : [ "pattern" ],
- "additionalProperties" : false
- },
- "notification_handler_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "permissions_group_id" : { },
- "type" : {
- "type" : "string",
- "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
- },
- "user_id" : { }
- },
- "required" : [ "type", "details" ]
- } ]
+ "metabase.permissions-rest.schema.group-id" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.decodable-keyword-int"
},
- "metabase.notification.models.CreateNotificationSubscriptionParams" : {
- "description" : "Schema for :model/NotificationSubscription on a create request.",
- "oneOf" : [ {
- "type" : "object",
- "properties" : {
- "cron_schedule" : {
- "type" : "null"
- },
- "event_name" : {
- "anyOf" : [ {
- "type" : "string"
- }, {
- "type" : "string"
- } ]
- },
- "notification_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "type" : {
- "type" : "string",
- "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ]
- }
- },
- "required" : [ "type", "event_name" ]
- }, {
- "type" : "object",
- "properties" : {
- "cron_schedule" : {
- "type" : "string"
- },
- "event_name" : {
- "type" : "null"
- },
- "notification_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "type" : {
- "type" : "string",
- "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ]
- },
- "ui_display_type" : {
- "oneOf" : [ {
- "type" : "string",
- "enum" : [ "cron/raw", "cron/builder" ]
- }, {
- "type" : "null"
- } ]
- }
- },
- "required" : [ "type", "cron_schedule" ]
- } ]
+ "metabase.permissions-rest.schema.id" : {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.decodable-keyword-int"
},
- "metabase.notification.models.FullyHydratedNotification" : {
- "description" : "Fully hydrated notification.",
- "oneOf" : [ {
- "type" : "object",
- "properties" : {
- "payload_type" : {
- "type" : "string",
- "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
- },
- "payload_id" : {
- "oneOf" : [ {
- "type" : "integer"
- }, {
- "type" : "null"
- } ]
- },
- "handlers" : {
- "type" : "array",
- "items" : {
- "type" : "object",
- "properties" : {
- "template_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- },
- "channel_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "recipients" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
- }
- },
- "template" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
- }, {
- "type" : "null"
- } ]
- },
- "channel_type" : { },
- "channel" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
- }, {
- "type" : "null"
- } ]
- },
- "notification_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "active" : {
- "oneOf" : [ {
- "type" : "boolean"
- }, {
- "type" : "null"
- } ]
- }
- },
- "required" : [ "channel_type" ]
- }
- },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "creator" : {
- "oneOf" : [ {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- }, {
- "type" : "null"
- } ]
- },
- "active" : {
- "oneOf" : [ {
- "type" : "boolean"
- }, {
- "type" : "null"
- } ]
- },
- "payload" : {
- "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
- },
- "creator_id" : {
- "oneOf" : [ {
- "type" : "integer"
- }, {
- "type" : "null"
- } ]
- },
- "subscriptions" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
- }
- }
- },
- "required" : [ "payload_type", "payload" ]
- }, {
- "type" : "object",
- "properties" : {
- "active" : {
- "oneOf" : [ {
- "type" : "boolean"
- }, {
- "type" : "null"
- } ]
- },
- "creator" : {
- "oneOf" : [ {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- }, {
- "type" : "null"
- } ]
- },
- "creator_id" : {
- "oneOf" : [ {
- "type" : "integer"
- }, {
- "type" : "null"
- } ]
- },
- "handlers" : {
- "type" : "array",
- "items" : {
- "type" : "object",
- "properties" : {
- "template_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- },
- "channel_id" : {
- "oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }, {
- "type" : "null"
- } ]
- },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "recipients" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
- }
- },
- "template" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
- }, {
- "type" : "null"
- } ]
- },
- "channel_type" : { },
- "channel" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
- }, {
- "type" : "null"
- } ]
- },
- "notification_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "active" : {
- "oneOf" : [ {
- "type" : "boolean"
- }, {
- "type" : "null"
- } ]
- }
- },
- "required" : [ "channel_type" ]
- }
- },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "payload_id" : {
- "oneOf" : [ {
- "type" : "integer"
- }, {
- "type" : "null"
- } ]
- },
- "payload_type" : {
- "type" : "string",
- "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
- },
- "subscriptions" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
- }
- }
+ "metabase.permissions-rest.schema.impersonation-update" : {
+ "description" : "a connection impersonation policy to write alongside a permissions graph update",
+ "type" : "object",
+ "properties" : {
+ "attribute" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "db_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "required" : [ "payload_type" ]
+ "group_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }
+ },
+ "required" : [ "group_id", "db_id", "attribute" ],
+ "additionalProperties" : false
+ },
+ "metabase.permissions-rest.schema.native" : {
+ "description" : "native permissions",
+ "oneOf" : [ {
+ "type" : "string",
+ "enum" : [ "write", "none", "full", "limited" ]
+ }, {
+ "type" : "null"
} ]
},
- "metabase.notification.models.NotificationCard" : {
- "description" : "Schema for :model/NotificationCard.",
+ "metabase.permissions-rest.schema.perms" : {
+ "description" : "Perms that get reused for TablePerms and SchemaPerms",
+ "type" : "string",
+ "enum" : [ "all", "blocked", "full", "legacy-no-self-service", "limited", "no", "none", "query-builder", "sandboxed", "segmented", "unrestricted" ]
+ },
+ "metabase.permissions-rest.schema.sandbox-update" : {
+ "description" : "a sandbox to write alongside a permissions graph update",
"type" : "object",
"properties" : {
- "card" : {
+ "attribute_remappings" : {
"oneOf" : [ {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.attribute-remappings"
}, {
"type" : "null"
} ]
},
"card_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "id" : {
"oneOf" : [ {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
@@ -14125,7 +25145,17 @@
"type" : "null"
} ]
},
- "notification_id" : {
+ "group_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "permission_id" : {
"oneOf" : [ {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
@@ -14134,776 +25164,555 @@
"type" : "null"
} ]
},
- "send_condition" : {
- "type" : "string",
- "enum" : [ "goal_below", "has_result", "goal_above" ]
- },
- "send_once" : {
- "type" : "boolean"
+ "table_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
}
},
- "required" : [ "card_id" ]
+ "additionalProperties" : false
},
- "metabase.notification.models.NotificationCardUpdate" : {
- "description" : "::NotificationCard restricted to what the update spec writes - `:id` comes from the URL's notification.",
+ "metabase.permissions-rest.schema.schema-graph" : {
+ "type" : "object",
+ "additionalProperties" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.schema-perms"
+ }, { } ]
+ }
+ },
+ "metabase.permissions-rest.schema.schema-perms" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.table-perms"
+ }, { } ]
+ }
+ }, {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.perms"
+ } ]
+ },
+ "metabase.permissions-rest.schema.schemas" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.schema-graph"
+ }, {
+ "type" : "string",
+ "enum" : [ "all", "segmented", "none", "block", "blocked", "full", "limited", "impersonated", "unrestricted", "sandboxed", "legacy-no-self-service", "query-builder-and-native", "query-builder", "no" ]
+ } ]
+ },
+ "metabase.permissions-rest.schema.strict-data-perms" : {
+ "description" : "Data perms that care about how view-data and make-queries are related to one another.\n If you have write access for native queries, you must have data access to all schemas.",
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.data-perms"
+ },
+ "metabase.permissions-rest.schema.table-perms" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "properties" : {
+ "query" : {
+ "type" : "string",
+ "enum" : [ "all", "none", "segmented" ]
+ },
+ "read" : {
+ "type" : "string",
+ "enum" : [ "all", "none" ]
+ }
+ },
+ "additionalProperties" : false
+ }, {
+ "$ref" : "#/components/schemas/metabase.permissions-rest.schema.perms"
+ } ]
+ },
+ "metabase.permissions.schema..permissions-group.member" : {
+ "description" : "A member of a PermissionsGroup as `metabase.permissions.db/group-members` selects it: the User columns the group\n member list shows, the membership it comes from, and `:is_group_manager` when advanced permissions are enabled.",
"type" : "object",
"properties" : {
- "card_id" : {
+ "user_id" : {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
"minimum" : 1
},
- "send_condition" : {
- "type" : "string",
- "enum" : [ "goal_below", "has_result", "goal_above" ]
+ "group_id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
},
- "send_once" : {
- "type" : "boolean"
- }
- },
- "required" : [ "card_id" ]
- },
- "metabase.notification.models.NotificationHandler" : {
- "type" : "object",
- "properties" : {
- "active" : {
+ "id" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "email" : {
+ "type" : "string"
+ },
+ "is_group_manager" : {
"oneOf" : [ {
"type" : "boolean"
}, {
"type" : "null"
} ]
},
- "channel_id" : {
+ "is_superuser" : {
+ "type" : "boolean"
+ },
+ "last_name" : {
"oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "channel_type" : { },
- "id" : {
+ "first_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "type" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ },
+ "common_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "membership_id" : {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
"minimum" : 1
+ }
+ },
+ "required" : [ "id", "user_id", "first_name", "last_name", "email", "is_superuser", "type", "group_id", "membership_id" ],
+ "additionalProperties" : false
+ },
+ "metabase.permissions.schema.permissions-group" : {
+ "description" : "A PermissionsGroup as selected from the app DB: every column of `:permissions_group`.",
+ "type" : "object",
+ "properties" : {
+ "entity_id" : {
+ "type" : "string"
},
- "notification_id" : {
+ "id" : {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
"minimum" : 1
},
- "template_id" : {
+ "is_tenant_group" : {
+ "type" : "boolean"
+ },
+ "magic_group_type" : {
"oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
+ },
+ "name" : {
+ "type" : "string"
}
},
- "required" : [ "channel_type" ]
+ "required" : [ "id", "name", "entity_id", "magic_group_type", "is_tenant_group" ],
+ "additionalProperties" : false
},
- "metabase.notification.models.NotificationRecipient" : {
- "description" : "Schema for :model/NotificationRecipient.",
- "oneOf" : [ {
- "type" : "object",
- "properties" : {
- "details" : { },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "notification_handler_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "permissions_group_id" : { },
- "type" : {
- "type" : "string",
- "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
- },
- "user_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }
+ "metabase.queries.schema..card.dataset-query" : {
+ "description" : "The `:dataset_query` column of a Card, decoded.",
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-or-empty-query"
+ },
+ "metabase.queries.schema..card.dimension" : {
+ "description" : "One entry of the `:dimensions` column of a Card, decoded.",
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension"
+ },
+ "metabase.queries.schema..card.dimension-mapping" : {
+ "description" : "One entry of the `:dimension_mappings` column of a Card, decoded.",
+ "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-mapping"
+ },
+ "metabase.queries.schema..card.parameter" : {
+ "description" : "One entry of the `:parameters` column of a Card, decoded.",
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
+ },
+ "metabase.queries.schema..card.parameter-mapping" : {
+ "description" : "One entry of the `:parameter_mappings` column of a Card, decoded.",
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
+ },
+ "metabase.queries.schema..card.result-metadata" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata.lib-or-legacy-column"
+ }
+ },
+ "metabase.queries.schema..card.type" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
+ },
+ "metabase.queries.schema..card.update" : {
+ "description" : "What an update (or insert) of a Card accepts: every column of `:report_card` except `id`, all optional, plus `:verified-result-metadata?` consumed by the model's hooks.",
+ "type" : "object",
+ "properties" : {
+ "enable_embedding" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
},
- "required" : [ "type", "user_id" ]
- }, {
- "type" : "object",
- "properties" : {
- "details" : { },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "notification_handler_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "permissions_group_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "type" : {
- "type" : "string",
- "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
- },
- "user_id" : { }
+ "visualization_settings" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.visualization-settings"
+ }, {
+ "type" : "null"
+ } ]
},
- "required" : [ "type", "permissions_group_id" ]
- }, {
- "type" : "object",
- "properties" : {
- "details" : {
- "type" : "object",
- "properties" : {
- "channel_id" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
- },
- "value" : { }
- },
- "required" : [ "value" ],
- "additionalProperties" : false
- },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "notification_handler_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "permissions_group_id" : { },
- "type" : {
+ "dimension_mappings" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.dimension-mapping"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "cache_invalidated_at" : {
+ "oneOf" : [ {
"type" : "string",
- "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
- },
- "user_id" : { }
+ "format" : "date-time"
+ }, {
+ "type" : "null"
+ } ]
},
- "required" : [ "type", "details" ]
- }, {
- "type" : "object",
- "properties" : {
- "details" : {
- "type" : "object",
- "properties" : {
- "is_optional" : {
- "type" : "boolean"
- },
- "pattern" : {
- "type" : "string"
- }
- },
- "required" : [ "pattern" ],
- "additionalProperties" : false
- },
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "notification_handler_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "permissions_group_id" : { },
- "type" : {
+ "collection_preview" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "initially_published_at" : {
+ "oneOf" : [ {
"type" : "string",
- "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
- },
- "user_id" : { }
+ "format" : "date-time"
+ }, {
+ "type" : "null"
+ } ]
},
- "required" : [ "type", "details" ]
- } ]
- },
- "metabase.notification.models.NotificationSubscription" : {
- "description" : "Schema for :model/NotificationSubscription.",
- "oneOf" : [ {
- "type" : "object",
- "properties" : {
- "cron_schedule" : {
+ "view_count" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
"type" : "null"
- },
- "event_name" : {
+ } ]
+ },
+ "entity_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "dataset_query" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.dataset-query"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "parameter_mappings" : {
+ "oneOf" : [ {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.parameter-mapping"
+ }
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "metabot_chart_id" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "embedding_type" : {
+ "oneOf" : [ {
"anyOf" : [ {
"type" : "string"
}, {
"type" : "string"
} ]
- },
- "id" : {
- "type" : "integer"
- },
- "notification_id" : {
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "verified-result-metadata?" : {
+ "type" : "boolean"
+ },
+ "made_public_by_id" : {
+ "oneOf" : [ {
"description" : "value must be an integer greater than zero.",
"type" : "integer",
"minimum" : 1
- },
- "type" : {
- "type" : "string",
- "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ]
- }
+ }, {
+ "type" : "null"
+ } ]
},
- "required" : [ "type", "event_name" ]
- }, {
- "type" : "object",
- "properties" : {
- "cron_schedule" : {
+ "name" : {
+ "oneOf" : [ {
"type" : "string"
- },
- "event_name" : {
+ }, {
"type" : "null"
- },
- "id" : {
+ } ]
+ },
+ "archived" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_position" : {
+ "oneOf" : [ {
"type" : "integer"
- },
- "notification_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "type" : {
- "type" : "string",
- "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ]
- },
- "ui_display_type" : {
- "oneOf" : [ {
- "type" : "string",
- "enum" : [ "cron/raw", "cron/builder" ]
- }, {
- "type" : "null"
- } ]
- }
+ }, {
+ "type" : "null"
+ } ]
},
- "required" : [ "type", "cron_schedule" ]
- } ]
- },
- "metabase.parameters.schema..api.parameter-values" : {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-values"
- },
- "metabase.parameters.schema.legacy-ref" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-expression-ref"
- }, {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-field-ref"
- } ]
- },
- "metabase.parameters.schema.parameter" : {
- "description" : "parameter must be a map with :id and :type keys",
- "type" : "object",
- "properties" : {
- "filteringParameters" : {
+ "dimensions" : {
"oneOf" : [ {
"type" : "array",
"items" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.dimension"
}
}, {
"type" : "null"
} ]
},
- "mappings" : {
+ "database_id" : {
"oneOf" : [ {
- "anyOf" : [ {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
- }
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "embedding_params" : {
+ "oneOf" : [ {
+ "description" : "value must be a valid embedding params map.",
+ "oneOf" : [ {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string",
+ "enum" : [ "disabled", "enabled", "locked" ]
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
- },
- "uniqueItems" : true
+ "type" : "null"
} ]
}, {
"type" : "null"
} ]
},
- "sectionId" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
- },
- "values_source_config" : {
+ "updated_at" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.values-source-config"
+ "type" : "string",
+ "format" : "date-time"
}, {
"type" : "null"
} ]
},
- "display-name" : {
+ "dataset_query_metrics_v2_migration_backup" : {
"oneOf" : [ {
"type" : "string"
}, {
"type" : "null"
} ]
},
- "id" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
- },
- "name" : {
- "type" : "string"
- },
- "slug" : {
- "type" : "string"
- },
- "value" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
- },
- "required" : {
+ "table_id" : {
"oneOf" : [ {
- "type" : "boolean"
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
}, {
"type" : "null"
} ]
},
- "values_query_type" : {
+ "legacy_query" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.values-query-type"
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "type" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.type"
- },
- "temporal_units" : {
+ "document_id" : {
"oneOf" : [ {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
- }
+ "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
}, {
"type" : "null"
} ]
},
- "target" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
- },
- "values_source_type" : {
+ "result_metadata" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.parameters.schema.values-source-type"
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.result-metadata"
}, {
"type" : "null"
} ]
},
- "options" : {
+ "source_card_id" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.options"
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
}, {
"type" : "null"
} ]
},
- "default" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
- },
- "isMultiSelect" : {
+ "query_type" : {
"oneOf" : [ {
- "type" : "boolean"
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
- }
- },
- "required" : [ "id", "type" ]
- },
- "metabase.parameters.schema.parameter-mapping" : {
- "description" : "parameter_mapping must be a map with :parameter_id and :target keys",
- "type" : "object",
- "properties" : {
- "card_id" : {
+ },
+ "collection_id" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
}, {
"type" : "null"
} ]
},
- "parameter_id" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
- },
- "target" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
- }
- },
- "required" : [ "parameter_id", "target" ]
- },
- "metabase.parameters.schema.parameter-mappings" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
- }
- },
- "metabase.parameters.schema.parameter-values" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-with-value"
- }
- },
- "metabase.parameters.schema.parameter-with-value" : {
- "description" : "parameter must be a map with an :id key",
- "type" : "object",
- "properties" : {
- "default" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
- },
- "id" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
- },
- "name" : {
+ "cache_ttl" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ "type" : "integer"
}, {
"type" : "null"
} ]
},
- "options" : {
+ "type" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.options"
+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
}, {
"type" : "null"
} ]
},
- "slug" : {
+ "created_at" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
+ "type" : "string",
+ "format" : "date-time"
}, {
"type" : "null"
} ]
},
- "target" : {
+ "display" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
}, {
"type" : "null"
} ]
},
- "type" : {
+ "public_uuid" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.type"
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "value" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
- }
- },
- "required" : [ "id" ]
- },
- "metabase.parameters.schema.parameters" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
- }
- },
- "metabase.parameters.schema.values-query-type" : {
- "type" : "string",
- "enum" : [ "none", "list", "search" ]
- },
- "metabase.parameters.schema.values-source-config" : {
- "description" : "Schema for valid source_options within a Parameter",
- "type" : "object",
- "properties" : {
- "card_id" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
- },
- "label_field" : {
- "$ref" : "#/components/schemas/metabase.parameters.schema.legacy-ref"
- },
- "value_field" : {
- "$ref" : "#/components/schemas/metabase.parameters.schema.legacy-ref"
- },
- "values" : { }
- }
- },
- "metabase.parameters.schema.values-source-type" : {
- "type" : "string",
- "enum" : [ "static-list", "card" ]
- },
- "metabase.permissions-rest.schema.attribute-name" : {
- "description" : "a user attribute name",
- "type" : "string",
- "minLength" : 1
- },
- "metabase.permissions-rest.schema.attribute-remapping" : {
- "description" : "a field name, a field id, or a parameter target",
- "anyOf" : [ {
- "type" : "string",
- "minLength" : 1
- }, {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
- }, {
- "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
- } ]
- },
- "metabase.permissions-rest.schema.attribute-remappings" : {
- "description" : "a map of user attribute name -> the field or parameter target it is remapped onto",
- "type" : "object",
- "additionalProperties" : {
- "anyOf" : [ {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.attribute-remapping"
- }, { } ]
- }
- },
- "metabase.permissions-rest.schema.data-perms" : {
- "type" : "object",
- "properties" : {
- "native" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.native"
- },
- "schemas" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.schemas"
- }
- }
- },
- "metabase.permissions-rest.schema.db-perms" : {
- "description" : "the permissions one group has on one database",
- "type" : "object",
- "properties" : {
- "create-queries" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.schemas"
- },
- "data" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.strict-data-perms"
- },
- "data-model" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.strict-data-perms"
- },
- "details" : {
- "type" : "string",
- "enum" : [ "yes", "no" ]
- },
- "download" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.strict-data-perms"
- },
- "transforms" : {
- "type" : "string",
- "enum" : [ "yes", "no" ]
- },
- "view-data" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.schemas"
- }
- },
- "additionalProperties" : false
- },
- "metabase.permissions-rest.schema.decodable-keyword-int" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
- "metabase.permissions-rest.schema.graph-update-request" : {
- "description" : "the permissions graph, plus the sandboxes and connection impersonations to write with it",
- "type" : "object",
- "properties" : {
- "force" : {
+ "last_used_at" : {
"oneOf" : [ {
- "type" : "boolean"
+ "type" : "string",
+ "format" : "date-time"
}, {
"type" : "null"
} ]
},
- "groups" : {
- "oneOf" : [ {
- "type" : "object",
- "additionalProperties" : {
- "oneOf" : [ {
- "type" : "object",
- "additionalProperties" : {
- "anyOf" : [ {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.db-perms"
- }, { } ]
- }
- }, {
- "anyOf" : [ {
- "type" : "null"
- }, { } ]
- } ]
- }
- }, { } ]
- },
- "impersonations" : {
+ "parameters" : {
"oneOf" : [ {
"type" : "array",
"items" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.impersonation-update"
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.parameter"
}
}, {
"type" : "null"
} ]
},
- "revision" : {
+ "creator_id" : {
"oneOf" : [ {
- "description" : "value must be an integer.",
- "type" : "integer"
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
}, {
"type" : "null"
} ]
},
- "sandboxes" : {
+ "metabase_version" : {
"oneOf" : [ {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.sandbox-update"
- }
+ "type" : "string"
}, {
"type" : "null"
} ]
- }
- },
- "required" : [ "groups" ]
- },
- "metabase.permissions-rest.schema.group-id" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.decodable-keyword-int"
- },
- "metabase.permissions-rest.schema.id" : {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.decodable-keyword-int"
- },
- "metabase.permissions-rest.schema.impersonation-update" : {
- "description" : "a connection impersonation policy to write alongside a permissions graph update",
- "type" : "object",
- "properties" : {
- "attribute" : {
- "type" : "string",
- "minLength" : 1
- },
- "db_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
},
- "group_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }
- },
- "required" : [ "group_id", "db_id", "attribute" ]
- },
- "metabase.permissions-rest.schema.native" : {
- "description" : "native permissions",
- "oneOf" : [ {
- "type" : "string",
- "enum" : [ "write", "none", "full", "limited" ]
- }, {
- "type" : "null"
- } ]
- },
- "metabase.permissions-rest.schema.perms" : {
- "description" : "Perms that get reused for TablePerms and SchemaPerms",
- "type" : "string",
- "enum" : [ "all", "blocked", "full", "legacy-no-self-service", "limited", "no", "none", "query-builder", "sandboxed", "segmented", "unrestricted" ]
- },
- "metabase.permissions-rest.schema.sandbox-update" : {
- "description" : "a sandbox to write alongside a permissions graph update",
- "type" : "object",
- "properties" : {
- "attribute_remappings" : {
+ "archived_directly" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.attribute-remappings"
+ "type" : "boolean"
}, {
"type" : "null"
} ]
},
- "card_id" : {
+ "public_uuid_prefix" : {
"oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "group_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
},
- "id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "card_schema" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
},
- "permission_id" : {
+ "metabot_conversation_id" : {
"oneOf" : [ {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "type" : "string"
}, {
"type" : "null"
} ]
},
- "table_id" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
+ "dashboard_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
+ }, {
+ "type" : "null"
+ } ]
}
- }
+ },
+ "additionalProperties" : false
},
- "metabase.permissions-rest.schema.schema-graph" : {
+ "metabase.queries.schema..card.visualization-settings" : {
+ "description" : "Value must be a map.",
"type" : "object",
- "additionalProperties" : {
- "anyOf" : [ {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.schema-perms"
- }, { } ]
- }
- },
- "metabase.permissions-rest.schema.schema-perms" : {
- "oneOf" : [ {
- "type" : "object",
- "additionalProperties" : {
- "anyOf" : [ {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.table-perms"
- }, { } ]
- }
- }, {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.perms"
- } ]
- },
- "metabase.permissions-rest.schema.schemas" : {
- "oneOf" : [ {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.schema-graph"
- }, {
- "type" : "string",
- "enum" : [ "all", "segmented", "none", "block", "blocked", "full", "limited", "impersonated", "unrestricted", "sandboxed", "legacy-no-self-service", "query-builder-and-native", "query-builder", "no" ]
- } ]
- },
- "metabase.permissions-rest.schema.strict-data-perms" : {
- "description" : "Data perms that care about how view-data and make-queries are related to one another.\n If you have write access for native queries, you must have data access to all schemas.",
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.data-perms"
- },
- "metabase.permissions-rest.schema.table-perms" : {
- "oneOf" : [ {
- "type" : "object",
- "properties" : {
- "query" : {
- "type" : "string",
- "enum" : [ "all", "none", "segmented" ]
- },
- "read" : {
- "type" : "string",
- "enum" : [ "all", "none" ]
- }
- }
- }, {
- "$ref" : "#/components/schemas/metabase.permissions-rest.schema.perms"
- } ]
- },
- "metabase.queries.schema..card.type" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
+ "properties" : { }
},
"metabase.query-processor.schema..query-result.data" : {
"description" : "Schema for the :data key of query results.",
@@ -15082,6 +25891,22 @@
"type" : "string",
"enum" : [ "column-type-mismatch", "missing-primary-key", "missing-foreign-key", "foreign-key-mismatch" ]
},
+ "metabase.sso.schema.group-mappings" : {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "array",
+ "items" : {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ },
"metabase.sync.schedules.ExpandedSchedulesMap" : {
"description" : "value must be a valid map of schedule maps for a DB.",
"type" : "object",
@@ -15096,7 +25921,8 @@
"metadata_sync" : {
"$ref" : "#/components/schemas/metabase.util.cron.ScheduleMap"
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.task-history.api.RunEntity" : {
"type" : "object",
@@ -15144,7 +25970,8 @@
"type" : "string",
"enum" : [ "started", "success", "failed", "abandoned" ]
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.task-history.api.RunSortParams" : {
"type" : "object",
@@ -15160,7 +25987,8 @@
"enum" : [ "asc", "desc" ]
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
},
"metabase.task-history.api.TaskHistory" : {
"type" : "object",
@@ -15406,7 +26234,8 @@
} ]
}
},
- "required" : [ "alias", "database_id", "schema" ]
+ "required" : [ "alias", "database_id", "schema" ],
+ "additionalProperties" : false
},
"metabase.transforms-rest.api.transform.run-trigger" : {
"type" : "string",
@@ -15419,7 +26248,8 @@
"const" : "append"
}
},
- "required" : [ "type" ]
+ "required" : [ "type" ],
+ "additionalProperties" : false
},
"metabase.transforms.schema.checkpoint-strategy" : {
"type" : "object",
@@ -15438,7 +26268,8 @@
"const" : "checkpoint"
}
},
- "required" : [ "type" ]
+ "required" : [ "type" ],
+ "additionalProperties" : false
},
"metabase.transforms.schema.lookback" : {
"description" : "A lookback window: each run re-reads source rows up to `value` `unit`s behind the checkpoint,\n so late-arriving rows older than the watermark still get picked up. Only supported for\n temporal checkpoint columns.",
@@ -15453,7 +26284,8 @@
"minimum" : 1
}
},
- "required" : [ "value", "unit" ]
+ "required" : [ "value", "unit" ],
+ "additionalProperties" : false
},
"metabase.transforms.schema.merge-config" : {
"type" : "object",
@@ -15468,7 +26300,8 @@
}
}
},
- "required" : [ "type", "unique-key" ]
+ "required" : [ "type", "unique-key" ],
+ "additionalProperties" : false
},
"metabase.transforms.schema.merge-key-column" : {
"description" : "One column of a merge unique key. Carries a resolved `:field-id` when the target column is known,\n degrading to a `:name` ref when the target table doesn't exist yet (mirrors `::source-table-entry`).",
@@ -15485,7 +26318,8 @@
"type" : "string",
"minLength" : 1
}
- }
+ },
+ "additionalProperties" : false
},
"metabase.transforms.schema.source-incremental-strategy" : {
"oneOf" : [ {
@@ -15516,7 +26350,8 @@
"const" : "table-incremental"
}
},
- "required" : [ "type", "name", "target-incremental-strategy" ]
+ "required" : [ "type", "name", "target-incremental-strategy" ],
+ "additionalProperties" : false
},
"metabase.transforms.schema.table-target" : {
"type" : "object",
@@ -15539,7 +26374,8 @@
"const" : "table"
}
},
- "required" : [ "type", "name" ]
+ "required" : [ "type", "name" ],
+ "additionalProperties" : false
},
"metabase.transforms.schema.target-incremental-strategy" : {
"oneOf" : [ {
@@ -15562,7 +26398,8 @@
"const" : "query"
}
},
- "required" : [ "type", "query" ]
+ "required" : [ "type", "query" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -15585,7 +26422,8 @@
"const" : "python"
}
},
- "required" : [ "source-tables", "type", "body" ]
+ "required" : [ "source-tables", "type", "body" ],
+ "additionalProperties" : false
} ]
},
"metabase.transforms.schema.transform-target" : {
@@ -15796,6 +26634,71 @@
},
"required" : [ "can_create_queries", "can_create_native_queries" ]
},
+ "metabase.users.schema.user" : {
+ "description" : "A User as selected from the app DB: every column of `:core_user` that the model selects by default, plus `:common_name` added by the model's after-select hook.",
+ "type" : "object",
+ "properties" : {
+ "is_qbnewb" : {
+ "type" : "boolean"
+ },
+ "last_login" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ },
+ "email" : {
+ "type" : "string"
+ },
+ "is_data_analyst" : {
+ "type" : "boolean"
+ },
+ "is_superuser" : {
+ "type" : "boolean"
+ },
+ "tenant_id" : {
+ "oneOf" : [ {
+ "description" : "value must be an integer greater than zero.",
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "last_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "first_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "date_joined" : {
+ "type" : "string",
+ "format" : "date-time"
+ },
+ "common_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id", "email", "first_name", "last_name", "date_joined", "last_login", "is_superuser", "is_qbnewb", "tenant_id", "is_data_analyst" ],
+ "additionalProperties" : false
+ },
"metabase.users.schema.user-group-membership" : {
"description" : "Group Membership info of a User.\n In which :is_group_manager is only included if `advanced-permissions` is enabled.",
"type" : "object",
@@ -15810,7 +26713,8 @@
"type" : "boolean"
}
},
- "required" : [ "id" ]
+ "required" : [ "id" ],
+ "additionalProperties" : false
},
"metabase.util.cron.CronHour" : {
"type" : "integer",
@@ -15866,7 +26770,8 @@
"enum" : [ "hourly", "daily", "weekly", "monthly" ]
}
},
- "required" : [ "schedule_type" ]
+ "required" : [ "schedule_type" ],
+ "additionalProperties" : false
},
"metabase.warehouse-schema-rest.api.table.data-authority-write" : {
"description" : "Schema for writing a valid table data authority.",
@@ -15881,6 +26786,224 @@
"type" : "string",
"enum" : [ "source-data", "transform", "unknown", "ingested", "metabase-transform", "upload" ]
},
+ "metabase.warehouse-schema.schema.table" : {
+ "description" : "A Table as selected from the app DB: every column of `:metabase_table`.",
+ "type" : "object",
+ "properties" : {
+ "points_of_interest" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "transform_target" : {
+ "type" : "boolean"
+ },
+ "is_writable" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "is_upload" : {
+ "type" : "boolean"
+ },
+ "is_defective_duplicate" : {
+ "type" : "boolean"
+ },
+ "deactivated_at" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "visibility_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "data_authority" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ },
+ "view_count" : {
+ "type" : "integer"
+ },
+ "data_layer" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "transform_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.transform"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
+ },
+ "unique_table_helper" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "database_require_filter" : {
+ "oneOf" : [ {
+ "type" : "boolean"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "show_in_getting_started" : {
+ "type" : "boolean"
+ },
+ "owner_email" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "owner_user_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "name" : {
+ "type" : "string"
+ },
+ "updated_at" : {
+ "type" : "string",
+ "format" : "date-time"
+ },
+ "display_name" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "archived_at" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "format" : "date-time"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "collection_id" : {
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "data_source" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "is_published" : {
+ "type" : "boolean"
+ },
+ "created_at" : {
+ "type" : "string",
+ "format" : "date-time"
+ },
+ "caveats" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "db_id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
+ },
+ "active" : {
+ "type" : "boolean"
+ },
+ "estimated_row_count" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "initial_sync_status" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ },
+ "entity_type" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "field_order" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "string"
+ } ]
+ },
+ "description" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "id", "created_at", "updated_at", "name", "description", "entity_type", "active", "db_id", "display_name", "visibility_type", "schema", "points_of_interest", "caveats", "show_in_getting_started", "field_order", "initial_sync_status", "is_upload", "database_require_filter", "estimated_row_count", "view_count", "deactivated_at", "archived_at", "is_writable", "data_authority", "data_source", "data_layer", "owner_email", "owner_user_id", "collection_id", "is_published", "transform_id", "transform_target" ],
+ "additionalProperties" : false
+ },
"metabase.warehouses-rest.api.available-settings" : {
"type" : "object",
"additionalProperties" : {
@@ -16164,7 +27287,8 @@
"$ref" : "#/components/schemas/metabase.actions.schema.prefetch-parameter-values"
}
},
- "required" : [ "parameters" ]
+ "required" : [ "parameters" ],
+ "additionalProperties" : false
}
}
}
@@ -16252,7 +27376,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
@@ -16454,7 +27579,8 @@
"minimum" : 1
}
},
- "required" : [ "model", "model_id", "context" ]
+ "required" : [ "model", "model_id", "context" ],
+ "additionalProperties" : false
}
}
}
@@ -16920,7 +28046,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -17026,7 +28153,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -17235,10 +28363,15 @@
"data" : {
"type" : "array",
"items" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string"
- }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
},
"maxItems" : 100
},
@@ -17247,7 +28380,8 @@
"minLength" : 1
}
},
- "required" : [ "schema", "data" ]
+ "required" : [ "schema", "data" ],
+ "additionalProperties" : false
}
}
}
@@ -17319,10 +28453,15 @@
},
"labels" : {
"oneOf" : [ {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string"
- }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"type" : "null"
} ]
@@ -17335,11 +28474,13 @@
"enum" : [ "inc", "dec", "set", "observe", "clear" ]
}
},
- "required" : [ "op", "metric" ]
+ "required" : [ "op", "metric" ],
+ "additionalProperties" : false
}
}
},
- "required" : [ "events" ]
+ "required" : [ "events" ],
+ "additionalProperties" : false
}
}
}
@@ -17378,7 +28519,8 @@
"minLength" : 1
}
},
- "required" : [ "group_id", "name" ]
+ "required" : [ "group_id", "name" ],
+ "additionalProperties" : false
}
}
}
@@ -17472,7 +28614,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -17846,7 +28989,8 @@
"type" : "boolean"
}
},
- "required" : [ "enabled" ]
+ "required" : [ "enabled" ],
+ "additionalProperties" : false
}
}
}
@@ -18035,7 +29179,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -18757,11 +29902,13 @@
"enum" : [ "card", "dashboard", "collection", "document", "exploration" ]
}
},
- "required" : [ "type", "item_id" ]
+ "required" : [ "type", "item_id" ],
+ "additionalProperties" : false
}
}
},
- "required" : [ "orderings" ]
+ "required" : [ "orderings" ],
+ "additionalProperties" : false
}
}
}
@@ -19008,7 +30155,8 @@
"$ref" : "#/components/schemas/metabase.cache.api.cache-strategy"
}
},
- "required" : [ "model", "model_id", "strategy" ]
+ "required" : [ "model", "model_id", "strategy" ],
+ "additionalProperties" : false
}
}
}
@@ -19057,7 +30205,8 @@
}
}
},
- "required" : [ "model", "model_id" ]
+ "required" : [ "model", "model_id" ],
+ "additionalProperties" : false
}
}
}
@@ -19320,7 +30469,8 @@
"minimum" : 1
}
},
- "required" : [ "size_x", "size_y" ]
+ "required" : [ "size_x", "size_y" ],
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
@@ -19350,7 +30500,8 @@
} ]
}
},
- "required" : [ "name", "dataset_query", "display", "visualization_settings" ]
+ "required" : [ "name", "dataset_query", "display", "visualization_settings" ],
+ "additionalProperties" : false
}
}
}
@@ -19399,7 +30550,8 @@
} ]
}
},
- "required" : [ "card_ids" ]
+ "required" : [ "card_ids" ],
+ "additionalProperties" : false
}
}
}
@@ -19485,7 +30637,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -19735,7 +30888,8 @@
} ]
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -19802,7 +30956,8 @@
"type" : "boolean"
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -19979,11 +31134,16 @@
"oneOf" : [ {
"description" : "value must be a valid embedding params map.",
"oneOf" : [ {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string",
- "enum" : [ "disabled", "enabled", "locked" ]
- }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string",
+ "enum" : [ "disabled", "enabled", "locked" ]
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"type" : "null"
} ]
@@ -20054,7 +31214,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -20316,7 +31477,8 @@
}
}
},
- "required" : [ "card_ids" ]
+ "required" : [ "card_ids" ],
+ "additionalProperties" : false
}
}
}
@@ -20374,7 +31536,8 @@
} ]
}
},
- "required" : [ "card_ids" ]
+ "required" : [ "card_ids" ],
+ "additionalProperties" : false
}
}
}
@@ -20413,7 +31576,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -20460,31 +31624,7 @@
} ]
},
"details" : {
- "type" : "object",
- "properties" : {
- "auth-info" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- },
- "auth-method" : {
- "type" : "string",
- "enum" : [ "none", "header", "query-param", "request-body" ]
- },
- "fe-form-type" : {
- "type" : "string",
- "enum" : [ "api-key", "bearer", "basic", "none" ]
- },
- "method" : {
- "type" : "string",
- "enum" : [ "get", "post", "put" ]
- },
- "url" : {
- "description" : "value must be a valid URL."
- }
- },
- "required" : [ "url", "auth-method" ],
- "additionalProperties" : false
+ "$ref" : "#/components/schemas/metabase.channel.schema.http-details"
},
"name" : {
"type" : "string",
@@ -20494,7 +31634,8 @@
"description" : "Must be a namespaced channel. E.g: channel/http"
}
},
- "required" : [ "name", "type", "details" ]
+ "required" : [ "name", "type", "details" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -20515,13 +31656,7 @@
} ]
},
"details" : {
- "oneOf" : [ {
- "type" : "object",
- "properties" : { },
- "additionalProperties" : false
- }, {
- "type" : "null"
- } ]
+ "$ref" : "#/components/schemas/metabase.channel.schema.slack-details"
},
"name" : {
"type" : "string",
@@ -20531,7 +31666,8 @@
"description" : "Must be a namespaced channel. E.g: channel/http"
}
},
- "required" : [ "name", "type" ]
+ "required" : [ "name", "type", "details" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -20552,14 +31688,11 @@
} ]
},
"details" : {
- "type" : "object",
- "properties" : {
- "channel" : {
- "type" : "string"
- }
- },
- "required" : [ "channel" ],
- "additionalProperties" : false
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.schema.email-details"
+ }, {
+ "type" : "null"
+ } ]
},
"name" : {
"type" : "string",
@@ -20569,7 +31702,8 @@
"description" : "Must be a namespaced channel. E.g: channel/http"
}
},
- "required" : [ "name", "type", "details" ]
+ "required" : [ "name", "type" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -20591,46 +31725,7 @@
},
"details" : {
"oneOf" : [ {
- "anyOf" : [ {
- "type" : "object",
- "properties" : {
- "channel" : {
- "type" : "string"
- }
- },
- "required" : [ "channel" ],
- "additionalProperties" : false
- }, {
- "type" : "object",
- "properties" : {
- "auth-info" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- },
- "auth-method" : {
- "type" : "string",
- "enum" : [ "none", "header", "query-param", "request-body" ]
- },
- "fe-form-type" : {
- "type" : "string",
- "enum" : [ "api-key", "bearer", "basic", "none" ]
- },
- "method" : {
- "type" : "string",
- "enum" : [ "get", "post", "put" ]
- },
- "url" : {
- "description" : "value must be a valid URL."
- }
- },
- "required" : [ "url", "auth-method" ],
- "additionalProperties" : false
- }, {
- "type" : "object",
- "properties" : { },
- "additionalProperties" : false
- } ]
+ "$ref" : "#/components/schemas/metabase.channel.schema..channel.details"
}, {
"type" : "null"
} ]
@@ -20643,7 +31738,8 @@
"description" : "Must be a namespaced channel. E.g: channel/http"
}
},
- "required" : [ "name", "type" ]
+ "required" : [ "name", "type" ],
+ "additionalProperties" : false
} ]
}
}
@@ -20677,117 +31773,48 @@
"type" : "object",
"properties" : {
"details" : {
- "type" : "object",
- "properties" : {
- "auth-info" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- },
- "auth-method" : {
- "type" : "string",
- "enum" : [ "none", "header", "query-param", "request-body" ]
- },
- "fe-form-type" : {
- "type" : "string",
- "enum" : [ "api-key", "bearer", "basic", "none" ]
- },
- "method" : {
- "type" : "string",
- "enum" : [ "get", "post", "put" ]
- },
- "url" : {
- "description" : "value must be a valid URL."
- }
- },
- "required" : [ "url", "auth-method" ],
- "additionalProperties" : false
+ "$ref" : "#/components/schemas/metabase.channel.schema.http-details"
},
"type" : {
"description" : "Must be a namespaced channel. E.g: channel/http"
}
},
- "required" : [ "type", "details" ]
+ "required" : [ "type", "details" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"details" : {
- "oneOf" : [ {
- "type" : "object",
- "properties" : { },
- "additionalProperties" : false
- }, {
- "type" : "null"
- } ]
+ "$ref" : "#/components/schemas/metabase.channel.schema.slack-details"
},
"type" : {
"description" : "Must be a namespaced channel. E.g: channel/http"
}
},
- "required" : [ "type" ]
+ "required" : [ "type", "details" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"details" : {
- "type" : "object",
- "properties" : {
- "channel" : {
- "type" : "string"
- }
- },
- "required" : [ "channel" ],
- "additionalProperties" : false
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/metabase.channel.schema.email-details"
+ }, {
+ "type" : "null"
+ } ]
},
"type" : {
"description" : "Must be a namespaced channel. E.g: channel/http"
}
},
- "required" : [ "type", "details" ]
+ "required" : [ "type" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
"details" : {
"oneOf" : [ {
- "anyOf" : [ {
- "type" : "object",
- "properties" : {
- "channel" : {
- "type" : "string"
- }
- },
- "required" : [ "channel" ],
- "additionalProperties" : false
- }, {
- "type" : "object",
- "properties" : {
- "auth-info" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- },
- "auth-method" : {
- "type" : "string",
- "enum" : [ "none", "header", "query-param", "request-body" ]
- },
- "fe-form-type" : {
- "type" : "string",
- "enum" : [ "api-key", "bearer", "basic", "none" ]
- },
- "method" : {
- "type" : "string",
- "enum" : [ "get", "post", "put" ]
- },
- "url" : {
- "description" : "value must be a valid URL."
- }
- },
- "required" : [ "url", "auth-method" ],
- "additionalProperties" : false
- }, {
- "type" : "object",
- "properties" : { },
- "additionalProperties" : false
- } ]
+ "$ref" : "#/components/schemas/metabase.channel.schema..channel.details"
}, {
"type" : "null"
} ]
@@ -20796,7 +31823,8 @@
"description" : "Must be a namespaced channel. E.g: channel/http"
}
},
- "required" : [ "type" ]
+ "required" : [ "type" ],
+ "additionalProperties" : false
} ]
}
}
@@ -20882,31 +31910,7 @@
},
"details" : {
"oneOf" : [ {
- "type" : "object",
- "properties" : {
- "auth-info" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- },
- "auth-method" : {
- "type" : "string",
- "enum" : [ "none", "header", "query-param", "request-body" ]
- },
- "fe-form-type" : {
- "type" : "string",
- "enum" : [ "api-key", "bearer", "basic", "none" ]
- },
- "method" : {
- "type" : "string",
- "enum" : [ "get", "post", "put" ]
- },
- "url" : {
- "description" : "value must be a valid URL."
- }
- },
- "required" : [ "url", "auth-method" ],
- "additionalProperties" : false
+ "$ref" : "#/components/schemas/metabase.channel.schema.http-details"
}, {
"type" : "null"
} ]
@@ -20926,7 +31930,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -20947,9 +31952,7 @@
},
"details" : {
"oneOf" : [ {
- "type" : "object",
- "properties" : { },
- "additionalProperties" : false
+ "$ref" : "#/components/schemas/metabase.channel.schema.slack-details"
}, {
"type" : "null"
} ]
@@ -20969,7 +31972,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -20990,14 +31994,7 @@
},
"details" : {
"oneOf" : [ {
- "type" : "object",
- "properties" : {
- "channel" : {
- "type" : "string"
- }
- },
- "required" : [ "channel" ],
- "additionalProperties" : false
+ "$ref" : "#/components/schemas/metabase.channel.schema.email-details"
}, {
"type" : "null"
} ]
@@ -21017,7 +32014,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -21038,46 +32036,7 @@
},
"details" : {
"oneOf" : [ {
- "anyOf" : [ {
- "type" : "object",
- "properties" : {
- "channel" : {
- "type" : "string"
- }
- },
- "required" : [ "channel" ],
- "additionalProperties" : false
- }, {
- "type" : "object",
- "properties" : {
- "auth-info" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- },
- "auth-method" : {
- "type" : "string",
- "enum" : [ "none", "header", "query-param", "request-body" ]
- },
- "fe-form-type" : {
- "type" : "string",
- "enum" : [ "api-key", "bearer", "basic", "none" ]
- },
- "method" : {
- "type" : "string",
- "enum" : [ "get", "post", "put" ]
- },
- "url" : {
- "description" : "value must be a valid URL."
- }
- },
- "required" : [ "url", "auth-method" ],
- "additionalProperties" : false
- }, {
- "type" : "object",
- "properties" : { },
- "additionalProperties" : false
- } ]
+ "$ref" : "#/components/schemas/metabase.channel.schema..channel.details"
}, {
"type" : "null"
} ]
@@ -21097,7 +32056,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
} ]
}
}
@@ -21308,7 +32268,8 @@
} ]
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
}
}
}
@@ -21441,9 +32402,17 @@
"type" : "object",
"properties" : {
"groups" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "enum" : [ "write", "read", "none", "write", "read", "none" ]
+ }
+ }, { } ]
+ }
+ }, { } ]
},
"namespace" : {
"oneOf" : [ {
@@ -21462,7 +32431,8 @@
} ]
}
},
- "required" : [ "groups" ]
+ "required" : [ "groups" ],
+ "additionalProperties" : false
}
}
}
@@ -21876,7 +32846,8 @@
},
"uniqueItems" : true
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
@@ -22152,7 +33123,8 @@
} ]
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -22549,7 +33521,8 @@
},
"uniqueItems" : true
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
@@ -22599,7 +33572,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -22664,7 +33638,8 @@
"enum" : [ "document", "exploration" ]
}
},
- "required" : [ "target_type", "target_id", "content" ]
+ "required" : [ "target_type", "target_id", "content" ],
+ "additionalProperties" : false
}
}
}
@@ -22694,7 +33669,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -22740,7 +33716,8 @@
"is_resolved" : {
"type" : "boolean"
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -22813,7 +33790,8 @@
"maxLength" : 10
}
},
- "required" : [ "emoji" ]
+ "required" : [ "emoji" ],
+ "additionalProperties" : false
}
}
}
@@ -22921,7 +33899,8 @@
} ]
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
}
}
}
@@ -23053,7 +34032,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -23236,7 +34216,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -23299,12 +34280,14 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -23352,7 +34335,8 @@
"minimum" : 0
}
},
- "required" : [ "id", "name" ]
+ "required" : [ "id", "name" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -23366,7 +34350,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -23538,7 +34523,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -23601,12 +34587,14 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -23654,7 +34642,8 @@
"minimum" : 0
}
},
- "required" : [ "id", "name" ]
+ "required" : [ "id", "name" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -23668,7 +34657,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -23744,7 +34734,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -23825,7 +34816,8 @@
"type" : "boolean"
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -23881,7 +34873,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -23941,7 +34934,8 @@
"parameters" : {
"$ref" : "#/components/schemas/metabase.actions.schema.prefetch-parameter-values"
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -24079,7 +35073,8 @@
} ]
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -24267,11 +35262,16 @@
"oneOf" : [ {
"description" : "value must be a valid embedding params map.",
"oneOf" : [ {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string",
- "enum" : [ "disabled", "enabled", "locked" ]
- }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string",
+ "enum" : [ "disabled", "enabled", "locked" ]
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"type" : "null"
} ]
@@ -24300,7 +35300,8 @@
"minimum" : 0
}
},
- "required" : [ "id", "name" ]
+ "required" : [ "id", "name" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -24423,7 +35424,8 @@
"minimum" : 1
}
},
- "required" : [ "id" ]
+ "required" : [ "id" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -24439,7 +35441,8 @@
} ]
}
},
- "required" : [ "id", "size_x", "size_y", "row", "col" ]
+ "required" : [ "id", "size_x", "size_y", "row", "col" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -24452,7 +35455,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -24576,7 +35580,8 @@
"minimum" : 1
}
},
- "required" : [ "id" ]
+ "required" : [ "id" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -24592,7 +35597,8 @@
} ]
}
},
- "required" : [ "id", "size_x", "size_y", "row", "col" ]
+ "required" : [ "id", "size_x", "size_y", "row", "col" ],
+ "additionalProperties" : false
}
},
"tabs" : {
@@ -24616,14 +35622,16 @@
"minimum" : 0
}
},
- "required" : [ "id", "name" ]
+ "required" : [ "id", "name" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
} ]
}
},
- "required" : [ "cards" ]
+ "required" : [ "cards" ],
+ "additionalProperties" : false
}
}
}
@@ -24840,7 +35848,8 @@
} ]
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -25399,7 +36408,8 @@
} ]
}
},
- "required" : [ "name", "engine", "details" ]
+ "required" : [ "name", "engine", "details" ],
+ "additionalProperties" : false
}
}
}
@@ -25464,10 +36474,12 @@
"minLength" : 1
}
},
- "required" : [ "engine", "details" ]
+ "required" : [ "engine", "details" ],
+ "additionalProperties" : false
}
},
- "required" : [ "details" ]
+ "required" : [ "details" ],
+ "additionalProperties" : false
}
}
}
@@ -25683,7 +36695,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -26661,13 +37674,9 @@
"content" : {
"application/json" : {
"schema" : {
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query",
"type" : "object",
"properties" : {
- "database" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- },
"pretty" : {
"default" : true,
"oneOf" : [ {
@@ -26677,7 +37686,8 @@
} ]
}
},
- "required" : [ "database" ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -26721,9 +37731,12 @@
"parameter" : {
"$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
},
- "value" : { }
+ "value" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ }
},
- "required" : [ "parameter", "value" ]
+ "required" : [ "parameter", "value" ],
+ "additionalProperties" : false
}
}
}
@@ -26776,7 +37789,8 @@
"$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
}
},
- "required" : [ "parameter" ]
+ "required" : [ "parameter" ],
+ "additionalProperties" : false
}
}
}
@@ -26821,7 +37835,8 @@
"$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
}
},
- "required" : [ "parameter" ]
+ "required" : [ "parameter" ],
+ "additionalProperties" : false
}
}
}
@@ -26948,11 +37963,13 @@
},
"visualization_settings" : {
"default" : { },
+ "description" : "Value must be a map.",
"type" : "object",
"properties" : { }
}
},
- "required" : [ "query" ]
+ "required" : [ "query" ],
+ "additionalProperties" : false
}
}
}
@@ -27025,12 +38042,7 @@
},
"parameter_mappings" : {
"oneOf" : [ {
- "type" : "array",
- "items" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- }
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
}, {
"type" : "null"
} ]
@@ -27041,12 +38053,7 @@
},
"result_metadata" : {
"oneOf" : [ {
- "type" : "array",
- "items" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- }
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.result-metadata"
}, {
"type" : "null"
} ]
@@ -27080,7 +38087,8 @@
} ]
}
},
- "required" : [ "name", "dataset_query", "display", "visualization_settings" ]
+ "required" : [ "name", "dataset_query", "display", "visualization_settings" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -27113,7 +38121,8 @@
"maxLength" : 254
}
},
- "required" : [ "name", "document" ]
+ "required" : [ "name", "document" ],
+ "additionalProperties" : false
}
}
}
@@ -27257,12 +38266,7 @@
},
"parameter_mappings" : {
"oneOf" : [ {
- "type" : "array",
- "items" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- }
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
}, {
"type" : "null"
} ]
@@ -27273,12 +38277,7 @@
},
"result_metadata" : {
"oneOf" : [ {
- "type" : "array",
- "items" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- }
+ "$ref" : "#/components/schemas/metabase.queries.schema..card.result-metadata"
}, {
"type" : "null"
} ]
@@ -27312,7 +38311,8 @@
} ]
}
},
- "required" : [ "name", "dataset_query", "display", "visualization_settings" ]
+ "required" : [ "name", "dataset_query", "display", "visualization_settings" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -27348,7 +38348,8 @@
"minLength" : 1,
"maxLength" : 254
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -27447,7 +38448,8 @@
"type" : "boolean"
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -27597,7 +38599,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -27641,7 +38644,8 @@
"$ref" : "#/components/schemas/metabase.actions.types..scope.raw"
}
},
- "required" : [ "action", "scope" ]
+ "required" : [ "action", "scope" ],
+ "additionalProperties" : false
}
}
}
@@ -27689,7 +38693,8 @@
"$ref" : "#/components/schemas/metabase.actions.types..scope.raw"
}
},
- "required" : [ "action", "scope", "inputs" ]
+ "required" : [ "action", "scope", "inputs" ],
+ "additionalProperties" : false
}
}
}
@@ -27730,7 +38735,8 @@
"$ref" : "#/components/schemas/metabase.actions.types..scope.raw"
}
},
- "required" : [ "action", "scope" ]
+ "required" : [ "action", "scope" ],
+ "additionalProperties" : false
}
}
}
@@ -27815,8 +38821,7 @@
"additionalProperties" : {
"type" : "object",
"additionalProperties" : {
- "type" : "string",
- "minLength" : 1
+ "enum" : [ "yes", "no", "yes", "no" ]
}
}
},
@@ -27829,7 +38834,8 @@
} ]
}
},
- "required" : [ "groups" ]
+ "required" : [ "groups" ],
+ "additionalProperties" : false
}
}
}
@@ -28039,11 +39045,13 @@
"enum" : [ "yes", "no" ]
}
},
- "required" : [ "group_id", "perm_type", "perm_value" ]
+ "required" : [ "group_id", "perm_type", "perm_value" ],
+ "additionalProperties" : false
}
}
},
- "required" : [ "permissions" ]
+ "required" : [ "permissions" ],
+ "additionalProperties" : false
}
}
}
@@ -28308,7 +39316,8 @@
} ]
}
},
- "required" : [ "max_usage" ]
+ "required" : [ "max_usage" ],
+ "additionalProperties" : false
}
}
}
@@ -28339,7 +39348,8 @@
} ]
}
},
- "required" : [ "max_usage" ]
+ "required" : [ "max_usage" ],
+ "additionalProperties" : false
}
}
}
@@ -28375,7 +39385,8 @@
} ]
}
},
- "required" : [ "max_usage" ]
+ "required" : [ "max_usage" ],
+ "additionalProperties" : false
}
}
}
@@ -28402,7 +39413,8 @@
} ]
}
},
- "required" : [ "max_usage" ]
+ "required" : [ "max_usage" ],
+ "additionalProperties" : false
}
}
}
@@ -28561,7 +39573,8 @@
} ]
}
},
- "required" : [ "max_usage" ]
+ "required" : [ "max_usage" ],
+ "additionalProperties" : false
}
}
}
@@ -28754,7 +39767,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -28845,7 +39859,8 @@
"type" : "string",
"minLength" : 1
}
- }
+ },
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
@@ -29006,10 +40021,12 @@
},
"tempfile" : { }
},
- "required" : [ "filename", "size", "tempfile" ]
+ "required" : [ "filename", "size", "tempfile" ],
+ "additionalProperties" : false
}
},
- "required" : [ "file" ]
+ "required" : [ "file" ],
+ "additionalProperties" : false
}
}
}
@@ -29140,10 +40157,12 @@
},
"tempfile" : { }
},
- "required" : [ "filename", "size", "tempfile" ]
+ "required" : [ "filename", "size", "tempfile" ],
+ "additionalProperties" : false
}
},
- "required" : [ "file" ]
+ "required" : [ "file" ],
+ "additionalProperties" : false
}
}
}
@@ -29382,7 +40401,8 @@
} ]
}
},
- "required" : [ "dev_bundle_url" ]
+ "required" : [ "dev_bundle_url" ],
+ "additionalProperties" : false
}
}
}
@@ -29505,7 +40525,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -29673,7 +40694,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -29725,7 +40747,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -29865,10 +40888,12 @@
},
"tempfile" : { }
},
- "required" : [ "filename", "size", "tempfile" ]
+ "required" : [ "filename", "size", "tempfile" ],
+ "additionalProperties" : false
}
},
- "required" : [ "file" ]
+ "required" : [ "file" ],
+ "additionalProperties" : false
}
}
}
@@ -29910,7 +40935,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -29983,7 +41009,8 @@
} ]
}
},
- "required" : [ "dev_bundle_url" ]
+ "required" : [ "dev_bundle_url" ],
+ "additionalProperties" : false
}
}
}
@@ -30009,7 +41036,8 @@
} ]
}
},
- "required" : [ "dev_bundle_url" ]
+ "required" : [ "dev_bundle_url" ],
+ "additionalProperties" : false
}
}
}
@@ -30216,7 +41244,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -30365,7 +41394,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -30416,9 +41446,11 @@
"enum" : [ "inclusion", "exclusion", "all" ]
}
},
- "required" : [ "schema-filters-type", "schema-filters-patterns" ]
+ "required" : [ "schema-filters-type", "schema-filters-patterns" ],
+ "additionalProperties" : false
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -30496,9 +41528,11 @@
"enum" : [ "inclusion", "exclusion", "all" ]
}
},
- "required" : [ "schema-filters-type", "schema-filters-patterns" ]
+ "required" : [ "schema-filters-type", "schema-filters-patterns" ],
+ "additionalProperties" : false
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -30551,7 +41585,8 @@
"minLength" : 1
}
},
- "required" : [ "name", "details" ]
+ "required" : [ "name", "details" ],
+ "additionalProperties" : false
}
},
"router_database_id" : {
@@ -30560,7 +41595,8 @@
"minimum" : 1
}
},
- "required" : [ "router_database_id", "destinations" ]
+ "required" : [ "router_database_id", "destinations" ],
+ "additionalProperties" : false
}
}
}
@@ -30608,7 +41644,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -31180,7 +42217,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -31353,7 +42391,8 @@
"minLength" : 1
}
},
- "required" : [ "url" ]
+ "required" : [ "url" ],
+ "additionalProperties" : false
}
}
}
@@ -31483,7 +42522,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -31528,7 +42568,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -32462,7 +43503,8 @@
"minimum" : 1
}
},
- "required" : [ "user_id" ]
+ "required" : [ "user_id" ],
+ "additionalProperties" : false
}
}
}
@@ -32606,7 +43648,8 @@
"minLength" : 1
}
},
- "required" : [ "code" ]
+ "required" : [ "code" ],
+ "additionalProperties" : false
}
}
}
@@ -32660,7 +43703,8 @@
"minLength" : 1
}
},
- "required" : [ "password" ]
+ "required" : [ "password" ],
+ "additionalProperties" : false
}
}
}
@@ -32713,7 +43757,8 @@
"minLength" : 1
}
},
- "required" : [ "code" ]
+ "required" : [ "code" ],
+ "additionalProperties" : false
}
}
}
@@ -32766,7 +43811,8 @@
"minLength" : 1
}
},
- "required" : [ "code" ]
+ "required" : [ "code" ],
+ "additionalProperties" : false
}
}
}
@@ -32875,7 +43921,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -32963,7 +44010,8 @@
"minLength" : 1
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
}
}
}
@@ -33360,7 +44408,8 @@
"minLength" : 1
}
},
- "required" : [ "branch" ]
+ "required" : [ "branch" ],
+ "additionalProperties" : false
}
}
}
@@ -33520,7 +44569,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -33594,7 +44644,8 @@
"type" : "boolean"
}
},
- "required" : [ "expected_branch" ]
+ "required" : [ "expected_branch" ],
+ "additionalProperties" : false
}
}
}
@@ -33728,7 +44779,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -33788,7 +44840,8 @@
"minLength" : 1
}
},
- "required" : [ "new_branch", "message" ]
+ "required" : [ "new_branch", "message" ],
+ "additionalProperties" : false
}
}
}
@@ -33846,7 +44899,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -33897,7 +44951,8 @@
"$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-type"
}
},
- "required" : [ "source_entity_id", "source_entity_type", "target_entity_id", "target_entity_type" ]
+ "required" : [ "source_entity_id", "source_entity_type", "target_entity_id", "target_entity_type" ],
+ "additionalProperties" : false
}
}
}
@@ -33979,7 +45034,8 @@
"$ref" : "#/components/schemas/metabase.transforms.schema.transform-target"
}
},
- "required" : [ "card_id", "transform_name", "transform_target" ]
+ "required" : [ "card_id", "transform_name", "transform_target" ],
+ "additionalProperties" : false
}
}
}
@@ -34046,7 +45102,8 @@
"$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-type"
}
},
- "required" : [ "source_entity_id", "source_entity_type", "target_entity_id", "target_entity_type" ]
+ "required" : [ "source_entity_id", "source_entity_type", "target_entity_id", "target_entity_type" ],
+ "additionalProperties" : false
}
}
}
@@ -34303,14 +45360,29 @@
"type" : "string",
"minLength" : 1
},
+ "display" : {
+ "type" : "string",
+ "minLength" : 1
+ },
"value" : {
"type" : "string",
"minLength" : 1
}
},
- "required" : [ "value" ]
+ "required" : [ "value" ],
+ "additionalProperties" : false
}
},
+ "meta" : {
+ "type" : "object",
+ "properties" : {
+ "resourceType" : {
+ "type" : "string",
+ "minLength" : 1
+ }
+ },
+ "additionalProperties" : false
+ },
"schemas" : {
"type" : "array",
"items" : {
@@ -34319,7 +45391,8 @@
}
}
},
- "required" : [ "schemas", "displayName" ]
+ "required" : [ "schemas", "displayName" ],
+ "additionalProperties" : false
}
}
}
@@ -34401,14 +45474,29 @@
"type" : "string",
"minLength" : 1
},
+ "display" : {
+ "type" : "string",
+ "minLength" : 1
+ },
"value" : {
"type" : "string",
"minLength" : 1
}
},
- "required" : [ "value" ]
+ "required" : [ "value" ],
+ "additionalProperties" : false
}
},
+ "meta" : {
+ "type" : "object",
+ "properties" : {
+ "resourceType" : {
+ "type" : "string",
+ "minLength" : 1
+ }
+ },
+ "additionalProperties" : false
+ },
"schemas" : {
"type" : "array",
"items" : {
@@ -34417,7 +45505,8 @@
}
}
},
- "required" : [ "schemas", "displayName" ]
+ "required" : [ "schemas", "displayName" ],
+ "additionalProperties" : false
}
}
}
@@ -34530,8 +45619,51 @@
"schema" : {
"type" : "object",
"properties" : {
- "active" : {
- "type" : "boolean"
+ "schemas" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string",
+ "minLength" : 1
+ }
+ },
+ "id" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "name" : {
+ "type" : "object",
+ "properties" : {
+ "familyName" : {
+ "type" : "string"
+ },
+ "givenName" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "givenName", "familyName" ],
+ "additionalProperties" : false
+ },
+ "locale" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "minLength" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "userName" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "meta" : {
+ "type" : "object",
+ "properties" : {
+ "resourceType" : {
+ "type" : "string",
+ "minLength" : 1
+ }
+ },
+ "additionalProperties" : false
},
"emails" : {
"type" : "array",
@@ -34550,9 +45682,13 @@
"minLength" : 1
}
},
- "required" : [ "value" ]
+ "required" : [ "value" ],
+ "additionalProperties" : false
}
},
+ "active" : {
+ "type" : "boolean"
+ },
"groups" : {
"type" : "array",
"items" : {
@@ -34571,46 +45707,13 @@
"minLength" : 1
}
},
- "required" : [ "value", "display" ]
- }
- },
- "id" : {
- "type" : "string",
- "minLength" : 1
- },
- "locale" : {
- "oneOf" : [ {
- "type" : "string",
- "minLength" : 1
- }, {
- "type" : "null"
- } ]
- },
- "name" : {
- "type" : "object",
- "properties" : {
- "familyName" : {
- "type" : "string"
- },
- "givenName" : {
- "type" : "string"
- }
- },
- "required" : [ "givenName", "familyName" ]
- },
- "schemas" : {
- "type" : "array",
- "items" : {
- "type" : "string",
- "minLength" : 1
+ "required" : [ "value", "display" ],
+ "additionalProperties" : false
}
- },
- "userName" : {
- "type" : "string",
- "minLength" : 1
}
},
- "required" : [ "schemas", "userName", "name", "emails" ]
+ "required" : [ "schemas", "userName", "name", "emails" ],
+ "additionalProperties" : false
}
}
}
@@ -34675,8 +45778,51 @@
"schema" : {
"type" : "object",
"properties" : {
- "active" : {
- "type" : "boolean"
+ "schemas" : {
+ "type" : "array",
+ "items" : {
+ "type" : "string",
+ "minLength" : 1
+ }
+ },
+ "id" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "name" : {
+ "type" : "object",
+ "properties" : {
+ "familyName" : {
+ "type" : "string"
+ },
+ "givenName" : {
+ "type" : "string"
+ }
+ },
+ "required" : [ "givenName", "familyName" ],
+ "additionalProperties" : false
+ },
+ "locale" : {
+ "oneOf" : [ {
+ "type" : "string",
+ "minLength" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "userName" : {
+ "type" : "string",
+ "minLength" : 1
+ },
+ "meta" : {
+ "type" : "object",
+ "properties" : {
+ "resourceType" : {
+ "type" : "string",
+ "minLength" : 1
+ }
+ },
+ "additionalProperties" : false
},
"emails" : {
"type" : "array",
@@ -34695,9 +45841,13 @@
"minLength" : 1
}
},
- "required" : [ "value" ]
+ "required" : [ "value" ],
+ "additionalProperties" : false
}
},
+ "active" : {
+ "type" : "boolean"
+ },
"groups" : {
"type" : "array",
"items" : {
@@ -34716,46 +45866,13 @@
"minLength" : 1
}
},
- "required" : [ "value", "display" ]
- }
- },
- "id" : {
- "type" : "string",
- "minLength" : 1
- },
- "locale" : {
- "oneOf" : [ {
- "type" : "string",
- "minLength" : 1
- }, {
- "type" : "null"
- } ]
- },
- "name" : {
- "type" : "object",
- "properties" : {
- "familyName" : {
- "type" : "string"
- },
- "givenName" : {
- "type" : "string"
- }
- },
- "required" : [ "givenName", "familyName" ]
- },
- "schemas" : {
- "type" : "array",
- "items" : {
- "type" : "string",
- "minLength" : 1
+ "required" : [ "value", "display" ],
+ "additionalProperties" : false
}
- },
- "userName" : {
- "type" : "string",
- "minLength" : 1
}
},
- "required" : [ "schemas", "userName", "name", "emails" ]
+ "required" : [ "schemas", "userName", "name", "emails" ],
+ "additionalProperties" : false
}
}
}
@@ -34811,14 +45928,22 @@
},
"value" : {
"oneOf" : [ {
- "type" : "object",
- "additionalProperties" : { }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase-enterprise.scim.v2.api.patch-value"
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"$ref" : "#/components/schemas/metabase-enterprise.scim.v2.api.patch-value"
} ]
}
},
- "required" : [ "op", "value" ]
+ "required" : [ "op", "value" ],
+ "additionalProperties" : false
}
},
"schemas" : {
@@ -34829,7 +45954,8 @@
}
}
},
- "required" : [ "schemas", "Operations" ]
+ "required" : [ "schemas", "Operations" ],
+ "additionalProperties" : false
}
}
}
@@ -35043,7 +46169,8 @@
}
}
},
- "required" : [ "advisory_ids" ]
+ "required" : [ "advisory_ids" ],
+ "additionalProperties" : false
}
}
}
@@ -35138,7 +46265,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -35412,7 +46540,8 @@
"additionalProperties" : false
}
},
- "required" : [ "file" ]
+ "required" : [ "file" ],
+ "additionalProperties" : false
}
}
}
@@ -35722,8 +46851,15 @@
"attributes" : {
"oneOf" : [ {
"allOf" : [ {
- "type" : "object",
- "additionalProperties" : { }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"description" : "attribute keys must be a keyword or string and must not start with `@`"
} ]
@@ -35836,7 +46972,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -35926,8 +47063,15 @@
"attributes" : {
"oneOf" : [ {
"allOf" : [ {
- "type" : "object",
- "additionalProperties" : { }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"description" : "attribute keys must be a keyword or string and must not start with `@`"
} ]
@@ -36203,7 +47347,8 @@
"minItems" : 1
}
},
- "required" : [ "code", "source_tables" ]
+ "required" : [ "code", "source_tables" ],
+ "additionalProperties" : false
}
}
}
@@ -36340,7 +47485,7 @@
"properties" : {
"lens_params" : {
"oneOf" : [ {
- "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.lens-params"
+ "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema..lens-params.request"
}, {
"type" : "null"
} ]
@@ -36349,7 +47494,8 @@
"$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query"
}
},
- "required" : [ "query" ]
+ "required" : [ "query" ],
+ "additionalProperties" : false
}
}
}
@@ -36442,16 +47588,11 @@
"type" : "object",
"properties" : {
"entity_ids" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "array",
- "items" : {
- "type" : "string"
- }
- }
+ "$ref" : "#/components/schemas/metabase.eid-translation.schema.entity-ids-by-model"
}
},
- "required" : [ "entity_ids" ]
+ "required" : [ "entity_ids" ],
+ "additionalProperties" : false
}
}
}
@@ -36517,7 +47658,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -36591,7 +47733,8 @@
"minLength" : 1
}
},
- "required" : [ "encodedQuery" ]
+ "required" : [ "encodedQuery" ],
+ "additionalProperties" : false
}
}
}
@@ -36661,7 +47804,8 @@
"const" : "mcp"
}
},
- "required" : [ "source" ]
+ "required" : [ "source" ],
+ "additionalProperties" : false
},
"feedback" : {
"type" : "object",
@@ -36686,10 +47830,12 @@
"type" : "boolean"
}
},
- "required" : [ "positive" ]
+ "required" : [ "positive" ],
+ "additionalProperties" : false
}
},
- "required" : [ "feedback", "conversation_data" ]
+ "required" : [ "feedback", "conversation_data" ],
+ "additionalProperties" : false
}
}
}
@@ -36761,11 +47907,16 @@
},
"settings" : {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}
},
- "required" : [ "name", "settings" ]
+ "required" : [ "name", "settings" ],
+ "additionalProperties" : false
}
}
}
@@ -36814,15 +47965,21 @@
},
"settings" : {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}
},
- "required" : [ "name", "settings" ]
+ "required" : [ "name", "settings" ],
+ "additionalProperties" : false
}
}
},
- "required" : [ "themes" ]
+ "required" : [ "themes" ],
+ "additionalProperties" : false
}
}
}
@@ -36914,13 +48071,18 @@
"settings" : {
"oneOf" : [ {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -37819,7 +48981,8 @@
} ]
}
},
- "required" : [ "dimension-id" ]
+ "required" : [ "dimension-id" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -37847,13 +49010,15 @@
} ]
}
},
- "required" : [ "card_id" ]
+ "required" : [ "card_id" ],
+ "additionalProperties" : false
}
}, {
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}, {
"type" : "null"
@@ -37900,7 +49065,8 @@
} ]
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
}
}
}
@@ -38005,7 +49171,8 @@
"type" : "boolean"
}
},
- "required" : [ "starred" ]
+ "required" : [ "starred" ],
+ "additionalProperties" : false
}
}
}
@@ -38055,7 +49222,8 @@
}
}
},
- "required" : [ "page_ids", "hidden" ]
+ "required" : [ "page_ids", "hidden" ],
+ "additionalProperties" : false
}
}
}
@@ -38286,7 +49454,8 @@
"minLength" : 1,
"maxLength" : 254
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -38385,8 +49554,7 @@
"minLength" : 1
},
"field_ref" : {
- "type" : "array",
- "items" : { }
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..dimension.target"
},
"operator" : {
"const" : "="
@@ -38405,7 +49573,8 @@
} ]
}
},
- "required" : [ "operator", "field_ref", "value", "display_value" ]
+ "required" : [ "operator", "field_ref", "value", "display_value" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -38421,8 +49590,7 @@
"minLength" : 1
},
"field_ref" : {
- "type" : "array",
- "items" : { }
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..dimension.target"
},
"operator" : {
"const" : "between"
@@ -38456,7 +49624,8 @@
} ]
}
},
- "required" : [ "operator", "field_ref", "values", "display_value" ]
+ "required" : [ "operator", "field_ref", "values", "display_value" ],
+ "additionalProperties" : false
} ]
},
"minItems" : 1
@@ -38467,7 +49636,8 @@
"minimum" : 1
}
},
- "required" : [ "page_id", "explore_filters" ]
+ "required" : [ "page_id", "explore_filters" ],
+ "additionalProperties" : false
}
}
}
@@ -38532,7 +49702,8 @@
"properties" : { }
}
},
- "required" : [ "exploration_query_ids", "display", "visualization_settings" ]
+ "required" : [ "exploration_query_ids", "display", "visualization_settings" ],
+ "additionalProperties" : false
}
}
}
@@ -38590,7 +49761,8 @@
}
}
},
- "required" : [ "field_ids" ]
+ "required" : [ "field_ids" ],
+ "additionalProperties" : false
}
}
}
@@ -38770,7 +49942,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -38828,7 +50001,8 @@
"enum" : [ "internal", "external" ]
}
},
- "required" : [ "type", "name" ]
+ "required" : [ "type", "name" ],
+ "additionalProperties" : false
}
}
}
@@ -39135,18 +50309,48 @@
"items" : {
"anyOf" : [ {
"type" : "array",
- "prefixItems" : [ { } ]
+ "prefixItems" : [ {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "type" : "string",
+ "format" : "uuid"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ }, {
+ "type" : "string"
+ } ]
}, {
"type" : "array",
- "prefixItems" : [ { }, {
- "type" : "string",
- "minLength" : 1
+ "prefixItems" : [ {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "type" : "string",
+ "format" : "uuid"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
} ]
} ]
}
}
},
- "required" : [ "values" ]
+ "required" : [ "values" ],
+ "additionalProperties" : false
}
}
}
@@ -39181,7 +50385,8 @@
"$ref" : "#/components/schemas/metabase.frontend-errors.api.frontend-error-type"
}
},
- "required" : [ "type" ]
+ "required" : [ "type" ],
+ "additionalProperties" : false
}
}
}
@@ -39219,7 +50424,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -39257,7 +50463,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -39315,7 +50522,8 @@
"minLength" : 1
}
},
- "required" : [ "term", "definition" ]
+ "required" : [ "term", "definition" ],
+ "additionalProperties" : false
}
}
}
@@ -39364,7 +50572,8 @@
"minLength" : 1
}
},
- "required" : [ "term", "definition" ]
+ "required" : [ "term", "definition" ],
+ "additionalProperties" : false
}
}
}
@@ -39443,7 +50652,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -39732,7 +50942,8 @@
"minimum" : 1
}
},
- "required" : [ "transform_id", "structured" ]
+ "required" : [ "transform_id", "structured" ],
+ "additionalProperties" : false
}
}
}
@@ -39913,7 +51124,8 @@
"$ref" : "#/components/schemas/metabase.indexes.schema.index-structured"
}
},
- "required" : [ "structured" ]
+ "required" : [ "structured" ],
+ "additionalProperties" : false
}
}
}
@@ -40030,15 +51242,7 @@
},
"ldap-group-mappings" : {
"oneOf" : [ {
- "type" : "object",
- "additionalProperties" : {
- "type" : "array",
- "items" : {
- "description" : "value must be an integer greater than zero.",
- "type" : "integer",
- "minimum" : 1
- }
- }
+ "$ref" : "#/components/schemas/metabase.sso.schema.group-mappings"
}, {
"type" : "null"
} ]
@@ -40086,7 +51290,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -40240,11 +51445,13 @@
"type" : "string"
}
},
- "required" : [ "type" ]
+ "required" : [ "type" ],
+ "additionalProperties" : false
}
}
},
- "required" : [ "database_id", "sql" ]
+ "required" : [ "database_id", "sql" ],
+ "additionalProperties" : false
}
}
}
@@ -40397,14 +51604,16 @@
"type" : "string"
}
},
- "required" : [ "model", "id" ]
+ "required" : [ "model", "id" ],
+ "additionalProperties" : false
}
},
"source_sql" : {
"type" : "string"
}
},
- "required" : [ "prompt", "database_id" ]
+ "required" : [ "prompt", "database_id" ],
+ "additionalProperties" : false
}
}
}
@@ -40801,14 +52010,19 @@
"properties" : {
"config" : {
"oneOf" : [ {
- "type" : "object",
- "additionalProperties" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
- }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"type" : "null"
} ]
@@ -40838,7 +52052,8 @@
"type" : "string"
}
},
- "required" : [ "type" ]
+ "required" : [ "type" ],
+ "additionalProperties" : false
}
}
}
@@ -40926,14 +52141,19 @@
"properties" : {
"config" : {
"oneOf" : [ {
- "type" : "object",
- "additionalProperties" : {
- "oneOf" : [ {
- "type" : "string"
- }, {
- "type" : "null"
- } ]
- }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"type" : "null"
} ]
@@ -40952,7 +52172,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -41021,9 +52242,20 @@
"duration_unit" : {
"$ref" : "#/components/schemas/metabase.logger.api.time-unit"
},
- "log_levels" : { }
+ "log_levels" : {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "type" : "string"
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ }
},
- "required" : [ "duration", "duration_unit", "log_levels" ]
+ "required" : [ "duration", "duration_unit", "log_levels" ],
+ "additionalProperties" : false
}
}
}
@@ -41188,7 +52420,8 @@
"minLength" : 1
}
},
- "required" : [ "name", "definition" ]
+ "required" : [ "name", "definition" ],
+ "additionalProperties" : false
}
}
}
@@ -41342,7 +52575,8 @@
"minLength" : 1
}
},
- "required" : [ "revision_message" ]
+ "required" : [ "revision_message" ],
+ "additionalProperties" : false
}
}
}
@@ -41501,12 +52735,42 @@
"items" : {
"anyOf" : [ {
"type" : "array",
- "prefixItems" : [ { }, {
+ "prefixItems" : [ {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "type" : "string",
+ "format" : "uuid"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ }, {
"type" : "string"
} ]
}, {
"type" : "array",
- "prefixItems" : [ { } ]
+ "prefixItems" : [ {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "type" : "string",
+ "format" : "uuid"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ } ]
} ]
}
}
@@ -41624,7 +52888,8 @@
"pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
}
},
- "required" : [ "message", "context", "conversation_id" ]
+ "required" : [ "message", "context", "conversation_id" ],
+ "additionalProperties" : false
}
}
}
@@ -41969,7 +53234,8 @@
"pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
}
},
- "required" : [ "message_id" ]
+ "required" : [ "message_id" ],
+ "additionalProperties" : false
}
}
}
@@ -42019,9 +53285,7 @@
} ]
},
"dataset_query" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query"
},
"metabot_chart_id" : {
"type" : "string",
@@ -42146,7 +53410,8 @@
} ]
}
},
- "required" : [ "name", "dataset_query", "display" ]
+ "required" : [ "name", "dataset_query", "display" ],
+ "additionalProperties" : false
},
"chart_id" : {
"allOf" : [ {
@@ -42158,7 +53423,8 @@
} ]
}
},
- "required" : [ "chart_id", "card" ]
+ "required" : [ "chart_id", "card" ],
+ "additionalProperties" : false
}
}
}
@@ -42248,9 +53514,7 @@
"minimum" : 1
},
"dataset_query" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "$ref" : "#/components/schemas/metabase.lib-be.schema.maybe-legacy-query"
},
"name" : {
"type" : "string",
@@ -42258,12 +53522,7 @@
},
"parameters" : {
"oneOf" : [ {
- "type" : "array",
- "items" : {
- "description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
- }
+ "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
}, {
"type" : "null"
} ]
@@ -42312,11 +53571,16 @@
},
"references" : {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}
},
- "required" : [ "instructions" ]
+ "required" : [ "instructions" ],
+ "additionalProperties" : false
}
}
}
@@ -42390,7 +53654,8 @@
"type" : "boolean"
}
},
- "required" : [ "metabot_id", "message_id", "positive" ]
+ "required" : [ "metabot_id", "message_id", "positive" ],
+ "additionalProperties" : false
}
}
}
@@ -42750,13 +54015,15 @@
"const" : "text/plain"
}
},
- "required" : [ "Content-Type" ]
+ "required" : [ "Content-Type" ],
+ "additionalProperties" : false
},
"status" : {
"const" : 200
}
},
- "required" : [ "status", "headers", "body" ]
+ "required" : [ "status", "headers", "body" ],
+ "additionalProperties" : false
}
}
}
@@ -42782,7 +54049,8 @@
"const" : "url_verification"
}
},
- "required" : [ "type", "challenge" ]
+ "required" : [ "type", "challenge" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -42836,7 +54104,8 @@
"type" : "string"
}
},
- "required" : [ "id", "name", "url_private", "size" ]
+ "required" : [ "id", "name", "url_private", "size" ],
+ "additionalProperties" : false
}
},
"text" : {
@@ -42865,7 +54134,8 @@
"type" : {
"type" : "string"
}
- }
+ },
+ "additionalProperties" : false
},
"thread_ts" : {
"oneOf" : [ {
@@ -42892,10 +54162,12 @@
"user" : {
"type" : "string"
}
- }
+ },
+ "additionalProperties" : false
}
},
- "required" : [ "type", "event_ts" ]
+ "required" : [ "type", "event_ts" ],
+ "additionalProperties" : false
},
"event_id" : {
"type" : "string"
@@ -42907,7 +54179,8 @@
"const" : "event_callback"
}
},
- "required" : [ "type", "event" ]
+ "required" : [ "type", "event" ],
+ "additionalProperties" : false
}, {
"type" : "object",
"properties" : {
@@ -42915,7 +54188,8 @@
"type" : "string"
}
},
- "required" : [ "type" ]
+ "required" : [ "type" ],
+ "additionalProperties" : false
} ]
}
}
@@ -42952,7 +54226,8 @@
"minLength" : 1
}
},
- "required" : [ "payload" ]
+ "required" : [ "payload" ],
+ "additionalProperties" : false
}
}
}
@@ -43021,7 +54296,8 @@
} ]
}
},
- "required" : [ "slack-connect-client-id", "slack-connect-client-secret", "metabot-slack-signing-secret" ]
+ "required" : [ "slack-connect-client-id", "slack-connect-client-secret", "metabot-slack-signing-secret" ],
+ "additionalProperties" : false
}
}
}
@@ -43090,7 +54366,8 @@
"enum" : [ "table", "card", "model" ]
}
},
- "required" : [ "metabot_id", "message_id", "source_id", "source_type", "positive" ]
+ "required" : [ "metabot_id", "message_id", "source_id", "source_type", "positive" ],
+ "additionalProperties" : false
}
}
}
@@ -43421,11 +54698,13 @@
"$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-mapping.target"
}
},
- "required" : [ "id", "mapping_target" ]
+ "required" : [ "id", "mapping_target" ],
+ "additionalProperties" : false
}
}
},
- "required" : [ "dimensions" ]
+ "required" : [ "dimensions" ],
+ "additionalProperties" : false
}
}
}
@@ -43484,7 +54763,8 @@
}
}
},
- "required" : [ "dimension_ids" ]
+ "required" : [ "dimension_ids" ],
+ "additionalProperties" : false
}
}
}
@@ -43543,7 +54823,8 @@
}
}
},
- "required" : [ "dimension_ids" ]
+ "required" : [ "dimension_ids" ],
+ "additionalProperties" : false
}
}
}
@@ -43603,7 +54884,8 @@
} ]
}
},
- "required" : [ "dimension_id" ]
+ "required" : [ "dimension_id" ],
+ "additionalProperties" : false
}
}
}
@@ -43685,12 +54967,14 @@
"minimum" : 1
}
},
- "required" : [ "field-id" ]
+ "required" : [ "field-id" ],
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -43849,12 +55133,42 @@
"items" : {
"anyOf" : [ {
"type" : "array",
- "prefixItems" : [ { }, {
+ "prefixItems" : [ {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "type" : "string",
+ "format" : "uuid"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ }, {
"type" : "string"
} ]
}, {
"type" : "array",
- "prefixItems" : [ { } ]
+ "prefixItems" : [ {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "type" : "string",
+ "format" : "uuid"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ } ]
} ]
}
}
@@ -43902,10 +55216,15 @@
"type" : "integer",
"minimum" : 1
},
- "pk_ref" : { },
- "value_ref" : { }
+ "pk_ref" : {
+ "$ref" : "#/components/schemas/metabase.indexed-entities.schema..model-index.pk-ref"
+ },
+ "value_ref" : {
+ "$ref" : "#/components/schemas/metabase.indexed-entities.schema..model-index.value-ref"
+ }
},
- "required" : [ "model_id", "pk_ref", "value_ref" ]
+ "required" : [ "model_id", "pk_ref", "value_ref" ],
+ "additionalProperties" : false
}
}
}
@@ -44047,7 +55366,8 @@
} ]
}
},
- "required" : [ "moderated_item_id", "moderated_item_type" ]
+ "required" : [ "moderated_item_id", "moderated_item_type" ],
+ "additionalProperties" : false
}
}
}
@@ -44145,7 +55465,8 @@
"minimum" : 1
}
},
- "required" : [ "table_id", "group_id" ]
+ "required" : [ "table_id", "group_id" ],
+ "additionalProperties" : false
}
}
}
@@ -44191,7 +55512,8 @@
"minimum" : 1
}
},
- "required" : [ "table_id" ]
+ "required" : [ "table_id" ],
+ "additionalProperties" : false
}
}
}
@@ -44270,7 +55592,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -44360,13 +55683,25 @@
"login_attributes" : {
"oneOf" : [ {
"description" : "value must be a valid user attributes map (name -> value)",
- "type" : "object",
- "additionalProperties" : { }
+ "allOf" : [ {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ }, {
+ "description" : "login attribute keys must not start with `@`"
+ } ]
}, {
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -44450,7 +55785,8 @@
"description" : "snippet names cannot include '}' or start with spaces"
}
},
- "required" : [ "content", "name" ]
+ "required" : [ "content", "name" ],
+ "additionalProperties" : false
}
}
}
@@ -44554,7 +55890,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -44864,7 +56201,8 @@
"minItems" : 1
}
},
- "required" : [ "notification_ids", "action" ]
+ "required" : [ "notification_ids", "action" ],
+ "additionalProperties" : false
}
}
}
@@ -44972,7 +56310,8 @@
"minimum" : 1
}
},
- "required" : [ "notification-handler-id", "email", "hash" ]
+ "required" : [ "notification-handler-id", "email", "hash" ],
+ "additionalProperties" : false
}
}
}
@@ -45015,7 +56354,8 @@
"minimum" : 1
}
},
- "required" : [ "notification-handler-id", "email", "hash" ]
+ "required" : [ "notification-handler-id", "email", "hash" ],
+ "additionalProperties" : false
}
}
}
@@ -45128,7 +56468,8 @@
"minimum" : 1
}
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -45212,7 +56553,8 @@
} ]
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -45284,7 +56626,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -45333,7 +56676,8 @@
"minLength" : 1
}
},
- "required" : [ "schema_name", "table_name" ]
+ "required" : [ "schema_name", "table_name" ],
+ "additionalProperties" : false
}
}
}
@@ -45463,7 +56807,8 @@
},
"maxItems" : 50
}
- }
+ },
+ "additionalProperties" : false
},
"entity_local_id" : {
"type" : "integer"
@@ -45615,7 +56960,8 @@
},
"maxItems" : 50
}
- }
+ },
+ "additionalProperties" : false
},
"entity_local_id" : {
"type" : "integer"
@@ -45695,7 +57041,8 @@
},
"maxItems" : 50
}
- }
+ },
+ "additionalProperties" : false
},
"entity_local_id" : {
"type" : "integer"
@@ -45749,10 +57096,12 @@
},
"maxItems" : 50
}
- }
+ },
+ "additionalProperties" : false
}
},
- "required" : [ "ai_context" ]
+ "required" : [ "ai_context" ],
+ "additionalProperties" : false
}
}
}
@@ -45985,7 +57334,8 @@
"minLength" : 1
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
}
}
}
@@ -46030,7 +57380,8 @@
"minLength" : 1
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
}
}
}
@@ -46203,7 +57554,8 @@
"minimum" : 1
}
},
- "required" : [ "group_id", "user_id" ]
+ "required" : [ "group_id", "user_id" ],
+ "additionalProperties" : false
}
}
}
@@ -46276,7 +57628,8 @@
"type" : "boolean"
}
},
- "required" : [ "is_group_manager" ]
+ "required" : [ "is_group_manager" ],
+ "additionalProperties" : false
}
}
}
@@ -46574,7 +57927,8 @@
"minLength" : 1
}
},
- "required" : [ "cron" ]
+ "required" : [ "cron" ],
+ "additionalProperties" : false
}
}
}
@@ -46756,12 +58110,42 @@
"items" : {
"anyOf" : [ {
"type" : "array",
- "prefixItems" : [ { }, {
+ "prefixItems" : [ {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "type" : "string",
+ "format" : "uuid"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ }, {
"type" : "string"
} ]
}, {
"type" : "array",
- "prefixItems" : [ { } ]
+ "prefixItems" : [ {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "type" : "string",
+ "format" : "uuid"
+ }, { } ]
+ }, {
+ "type" : "null"
+ } ]
+ } ]
} ]
}
}
@@ -47278,7 +58662,8 @@
"minLength" : 1
}
},
- "required" : [ "source" ]
+ "required" : [ "source" ],
+ "additionalProperties" : false
}
}
}
@@ -47354,7 +58739,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -47832,7 +59218,8 @@
"type" : "boolean"
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -47897,7 +59284,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -47958,7 +59346,8 @@
"$ref" : "#/components/schemas/metabase.actions.schema.prefetch-parameter-values"
}
},
- "required" : [ "parameters" ]
+ "required" : [ "parameters" ],
+ "additionalProperties" : false
}
}
}
@@ -48241,7 +59630,8 @@
"type" : "boolean"
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -48724,7 +60114,8 @@
} ]
}
},
- "required" : [ "name", "cards", "channels" ]
+ "required" : [ "name", "cards", "channels" ],
+ "additionalProperties" : false
}
}
}
@@ -48866,7 +60257,8 @@
},
"channels" : { }
},
- "required" : [ "name", "cards", "channels" ]
+ "required" : [ "name", "cards", "channels" ],
+ "additionalProperties" : false
}
}
}
@@ -48909,7 +60301,8 @@
"minimum" : 1
}
},
- "required" : [ "pulse-id", "email", "hash" ]
+ "required" : [ "pulse-id", "email", "hash" ],
+ "additionalProperties" : false
}
}
}
@@ -48952,7 +60345,8 @@
"minimum" : 1
}
},
- "required" : [ "pulse-id", "email", "hash" ]
+ "required" : [ "pulse-id", "email", "hash" ],
+ "additionalProperties" : false
}
}
}
@@ -49082,7 +60476,8 @@
} ]
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -49194,7 +60589,8 @@
"minimum" : 1
}
},
- "required" : [ "id", "entity", "revision_id" ]
+ "required" : [ "id", "entity", "revision_id" ],
+ "additionalProperties" : false
}
}
}
@@ -49994,7 +61390,13 @@
"in" : "query",
"name" : "search_engine",
"required" : false,
- "schema" : { }
+ "schema" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
} ],
"responses" : {
"2XX" : {
@@ -50048,7 +61450,8 @@
"minLength" : 1
}
},
- "required" : [ "name", "definition" ]
+ "required" : [ "name", "definition" ],
+ "additionalProperties" : false
}
}
}
@@ -50188,7 +61591,8 @@
} ]
}
},
- "required" : [ "revision_message" ]
+ "required" : [ "revision_message" ],
+ "additionalProperties" : false
}
}
}
@@ -50292,7 +61696,8 @@
"minLength" : 1
}
},
- "required" : [ "username", "password" ]
+ "required" : [ "username", "password" ],
+ "additionalProperties" : false
}
}
}
@@ -50320,7 +61725,8 @@
"application/json" : {
"schema" : {
"type" : "object",
- "properties" : { }
+ "properties" : { },
+ "additionalProperties" : false
}
}
}
@@ -50356,7 +61762,8 @@
"type" : "string"
}
},
- "required" : [ "email" ]
+ "required" : [ "email" ],
+ "additionalProperties" : false
}
}
}
@@ -50392,7 +61799,8 @@
"minLength" : 1
}
},
- "required" : [ "token" ]
+ "required" : [ "token" ],
+ "additionalProperties" : false
}
}
}
@@ -50441,7 +61849,8 @@
"minLength" : 1
}
},
- "required" : [ "challenge_token" ]
+ "required" : [ "challenge_token" ],
+ "additionalProperties" : false
}
}
}
@@ -50484,7 +61893,8 @@
"type" : "boolean"
}
},
- "required" : [ "challenge_token", "code" ]
+ "required" : [ "challenge_token", "code" ],
+ "additionalProperties" : false
}
}
}
@@ -50520,7 +61930,8 @@
"type" : "string"
}
},
- "required" : [ "password" ]
+ "required" : [ "password" ],
+ "additionalProperties" : false
}
}
}
@@ -50656,8 +62067,52 @@
"content" : {
"application/json" : {
"schema" : {
- "type" : "object",
- "additionalProperties" : { }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "type" : "array",
+ "items" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ } ]
+ }
+ }, {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}
}
}
@@ -50720,9 +62175,49 @@
"schema" : {
"type" : "object",
"properties" : {
- "value" : { }
+ "value" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "type" : "array",
+ "items" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ } ]
+ }
+ }, {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
},
- "required" : [ "value" ]
+ "required" : [ "value" ],
+ "additionalProperties" : false
}
}
}
@@ -50770,7 +62265,8 @@
"minLength" : 1
}
},
- "required" : [ "site_name" ]
+ "required" : [ "site_name" ],
+ "additionalProperties" : false
},
"token" : {
"description" : "Token does not match the setup token.",
@@ -50805,10 +62301,12 @@
"type" : "string"
}
},
- "required" : [ "email", "password" ]
+ "required" : [ "email", "password" ],
+ "additionalProperties" : false
}
},
- "required" : [ "token", "user", "prefs" ]
+ "required" : [ "token", "user", "prefs" ],
+ "additionalProperties" : false
}
}
}
@@ -50944,8 +62442,12 @@
"entityInfo" : {
"oneOf" : [ {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"type" : "null"
} ]
@@ -50983,8 +62485,12 @@
"type" : "array",
"items" : {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}
}, {
"type" : "null"
@@ -50993,8 +62499,12 @@
"bugReportDetails" : {
"oneOf" : [ {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"type" : "null"
} ]
@@ -51004,8 +62514,12 @@
"type" : "array",
"items" : {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}
}, {
"type" : "null"
@@ -51023,8 +62537,12 @@
"type" : "array",
"items" : {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}
}, {
"type" : "null"
@@ -51033,8 +62551,12 @@
"queryResults" : {
"oneOf" : [ {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"type" : "null"
} ]
@@ -51042,8 +62564,12 @@
"browserInfo" : {
"oneOf" : [ {
"description" : "Value must be a map.",
- "type" : "object",
- "properties" : { }
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"type" : "null"
} ]
@@ -51280,7 +62806,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -51536,7 +63063,8 @@
} ]
}
},
- "required" : [ "ids" ]
+ "required" : [ "ids" ],
+ "additionalProperties" : false
}
}
}
@@ -51775,7 +63303,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -51814,8 +63343,14 @@
"multipart/form-data" : {
"schema" : {
"allOf" : [ {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ],
"type" : "object",
- "additionalProperties" : { },
"properties" : {
"collection_id" : {
"type" : "string"
@@ -51828,7 +63363,8 @@
},
"tempfile" : { }
},
- "required" : [ "filename", "tempfile" ]
+ "required" : [ "filename", "tempfile" ],
+ "additionalProperties" : false
}
},
"required" : [ "file" ]
@@ -51933,7 +63469,8 @@
}
}
},
- "required" : [ "field_order" ]
+ "required" : [ "field_order" ],
+ "additionalProperties" : false
} ]
}
}
@@ -52096,8 +63633,14 @@
"multipart/form-data" : {
"schema" : {
"allOf" : [ {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ],
"type" : "object",
- "additionalProperties" : { },
"properties" : {
"collection_id" : {
"type" : "string"
@@ -52110,7 +63653,8 @@
},
"tempfile" : { }
},
- "required" : [ "filename", "tempfile" ]
+ "required" : [ "filename", "tempfile" ],
+ "additionalProperties" : false
}
},
"required" : [ "file" ]
@@ -52705,7 +64249,8 @@
"minLength" : 1
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
}
}
}
@@ -52842,7 +64387,8 @@
} ]
}
},
- "required" : [ "name", "timestamp", "timezone", "timeline_id" ]
+ "required" : [ "name", "timestamp", "timezone", "timeline_id" ],
+ "additionalProperties" : false
}
}
}
@@ -52970,7 +64516,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -53243,7 +64790,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -54151,7 +65699,8 @@
} ]
}
},
- "required" : [ "name", "source", "target" ]
+ "required" : [ "name", "source", "target" ],
+ "additionalProperties" : false
}
}
}
@@ -54545,7 +66094,8 @@
"enum" : [ "cron/raw", "cron/builder" ]
}
},
- "required" : [ "name", "schedule" ]
+ "required" : [ "name", "schedule" ],
+ "additionalProperties" : false
}
}
}
@@ -54813,7 +66363,8 @@
"type" : "boolean"
}
},
- "required" : [ "active" ]
+ "required" : [ "active" ],
+ "additionalProperties" : false
}
}
}
@@ -55024,7 +66575,8 @@
"type" : "string",
"enum" : [ "cron/raw", "cron/builder" ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -55292,7 +66844,8 @@
"type" : "boolean"
}
},
- "required" : [ ]
+ "required" : [ ],
+ "additionalProperties" : false
}
}
}
@@ -55903,7 +67456,8 @@
"minLength" : 1
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
}
}
}
@@ -56051,7 +67605,8 @@
"minLength" : 1
}
},
- "required" : [ "name" ]
+ "required" : [ "name" ],
+ "additionalProperties" : false
}
}
}
@@ -57670,7 +69225,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -58358,7 +69914,8 @@
"enum" : [ "upstream", "downstream" ]
}
},
- "required" : [ "direction" ]
+ "required" : [ "direction" ],
+ "additionalProperties" : false
}
}
}
@@ -58541,7 +70098,8 @@
},
"tempfile" : { }
},
- "required" : [ "filename", "tempfile" ]
+ "required" : [ "filename", "tempfile" ],
+ "additionalProperties" : false
}
},
"required" : [ "collection_id", "file" ],
@@ -58691,8 +70249,15 @@
"login_attributes" : {
"oneOf" : [ {
"allOf" : [ {
- "type" : "object",
- "additionalProperties" : { }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"description" : "login attribute keys must not start with `@`"
} ]
@@ -58773,13 +70338,15 @@
"enum" : [ "dashboard", "question" ]
}
},
- "required" : [ "type", "id", "name" ]
+ "required" : [ "type", "id", "name" ],
+ "additionalProperties" : false
}, {
"type" : "null"
} ]
}
},
- "required" : [ "email" ]
+ "required" : [ "email" ],
+ "additionalProperties" : false
}
}
}
@@ -58861,8 +70428,48 @@
"type" : "null"
} ]
},
- "value" : { }
- }
+ "value" : {
+ "oneOf" : [ {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ }, {
+ "type" : "array",
+ "items" : {
+ "anyOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "number"
+ }, {
+ "type" : "boolean"
+ }, {
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : { }
+ }, {
+ "description" : "Value must be a map."
+ } ]
+ } ]
+ }
+ } ]
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "additionalProperties" : false
}
}
}
@@ -59047,8 +70654,15 @@
"login_attributes" : {
"oneOf" : [ {
"allOf" : [ {
- "type" : "object",
- "additionalProperties" : { }
+ "description" : "Value must be a map.",
+ "oneOf" : [ {
+ "type" : "object",
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
+ }
+ }, {
+ "description" : "Value must be a map."
+ } ]
}, {
"description" : "login attribute keys must not start with `@`"
} ]
@@ -59129,7 +70743,8 @@
"type" : "null"
} ]
}
- }
+ },
+ "additionalProperties" : false
}
}
}
@@ -59245,7 +70860,8 @@
"type" : "string"
}
},
- "required" : [ "password" ]
+ "required" : [ "password" ],
+ "additionalProperties" : false
}
}
}
diff --git a/docs/configuring-metabase/environment-variables.md b/docs/configuring-metabase/environment-variables.md
index 52410c6311c..79d17d1b9c4 100644
--- a/docs/configuring-metabase/environment-variables.md
+++ b/docs/configuring-metabase/environment-variables.md
@@ -1784,7 +1784,7 @@ Controls which networks Metabase may connect to for map tile servers.
- Default: `https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`
- [Configuration file name](./config-file.md): `map-tile-server-url`
-The map tile server URL template used in map visualizations, for example from OpenStreetMaps or MapBox.
+The map tile server URL template used in map visualizations, for example from OpenStreetMaps or MapBox. This URL is visible to clients, so do not include private keys.
### `MB_MCP_APPS_CORS_CUSTOM_ORIGINS`