Compare commits
4 Commits
remove-she
...
openapi-sp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42e3a98805 | ||
|
|
245825e10e | ||
|
|
b0b2b597ab | ||
|
|
3eaf107895 |
10
.github/workflows/openapi.yml
vendored
10
.github/workflows/openapi.yml
vendored
@@ -3,8 +3,8 @@ name: Validate OpenAPI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'release-**'
|
||||
- "master"
|
||||
- "release-**"
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
@@ -39,6 +39,8 @@ jobs:
|
||||
- name: Prepare back-end environment
|
||||
uses: ./.github/actions/prepare-backend
|
||||
- name: Generate OpenAPI spec
|
||||
run: bun run generate-openapi
|
||||
run: bun run openapi:generate
|
||||
- name: Validate OpenAPI spec
|
||||
run: bun run lint-openapi
|
||||
run: bun run openapi:lint
|
||||
- name: Split OpenAPI spec
|
||||
run: bun run openapi:split
|
||||
|
||||
@@ -14,7 +14,7 @@ fi
|
||||
# Generate the current OpenAPI spec from Malli schemas using write-openapi-spec-to-file!
|
||||
# This creates $OPENAPI_SPEC directly
|
||||
# Using the generate-openapi-spec command from metabase.cmd.core
|
||||
bun run generate-openapi
|
||||
bun run openapi:generate
|
||||
ret=$?
|
||||
|
||||
if [[ $ret -ne 0 ]]; then
|
||||
@@ -82,7 +82,7 @@ if ! git diff --exit-code "$OPENAPI_SPEC" >/dev/null 2>&1; then
|
||||
echo ""
|
||||
echo "To fix this:"
|
||||
echo " 1. Pull the latest changes from master: git pull origin master"
|
||||
echo " 2. Run 'bun run generate-openapi' to update $OPENAPI_SPEC"
|
||||
echo " 2. Run 'bun run openapi:generate' to update $OPENAPI_SPEC"
|
||||
echo " 3. Commit the updated openapi.json file"
|
||||
echo ""
|
||||
echo "Differences:"
|
||||
|
||||
@@ -502,8 +502,6 @@
|
||||
"eslint-fix": "bun run lint-eslint --fix",
|
||||
"find-never-defined-css-variables": "tsx bin/find-never-defined-css-variables/find-never-defined-css-variables.ts",
|
||||
"generate-cypress-html-report": "mochawesome-merge cypress/reports/mochareports/*.json > cypress/reports/cypress-test-report.json && marge cypress/reports/cypress-test-report.json -o cypress/reports --inline",
|
||||
"generate-openapi": "clojure -M:run:ee generate-openapi-spec",
|
||||
"lint-openapi": "redocly lint resources/openapi/openapi.json --skip-rule security-defined --skip-rule operation-operationId --skip-rule no-unused-components --skip-rule info-license --skip-rule no-path-trailing-slash --skip-rule no-identical-paths --skip-rule no-ambiguous-paths --skip-rule path-parameters-defined --skip-rule spec-components-invalid-map-name",
|
||||
"lint": "bun run lint-eslint && bun run lint-prettier && bun run lint-docs-links && bun run lint-yaml && bun run type-check",
|
||||
"lint-docs-links": "bun install && ./bin/verify-doc-links",
|
||||
"lint-css": "stylelint './frontend/**/*.css'",
|
||||
@@ -512,6 +510,10 @@
|
||||
"lint-prettier": "bun install && bun lint-prettier-pure",
|
||||
"lint-prettier-pure": "prettier --check --cache '{frontend,enterprise/frontend,e2e}/**/*.{js,jsx,ts,tsx,css}'",
|
||||
"lint-yaml": "yamllint **/*.{yaml,yml} --ignore=node_modules/**/*.{yaml,yml}",
|
||||
"openapi:bundle": "redocly bundle resources/openapi/split/openapi.json --output=resources/openapi/openapi.json",
|
||||
"openapi:generate": "clojure -M:run:ee generate-openapi-spec",
|
||||
"openapi:lint": "redocly lint resources/openapi/openapi.json --skip-rule security-defined --skip-rule operation-operationId --skip-rule no-unused-components --skip-rule info-license --skip-rule no-path-trailing-slash --skip-rule no-identical-paths --skip-rule no-ambiguous-paths --skip-rule path-parameters-defined --skip-rule spec-components-invalid-map-name",
|
||||
"openapi:split": "redocly split resources/openapi/openapi.json --outDir=resources/openapi/split",
|
||||
"postinstall": "if [ -z \"$CI\" ]; then patch-package; fi",
|
||||
"precommit": "lint-staged",
|
||||
"preinstall": "node -e \"if(!/bun/.test(process.env.npm_execpath || '')) { console.error('Please use Bun, not npm or yarn.'); process.exit(1); }\"",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
129
resources/openapi/split/components/schemas/gsheets.response.json
Normal file
129
resources/openapi/split/components/schemas/gsheets.response.json
Normal file
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"anyOf": [
|
||||
{
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"message": {
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"error",
|
||||
"message"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"created_at": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"created_by_id": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"db_id": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"sync_started_at": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"url": {
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"url",
|
||||
"created_at",
|
||||
"sync_started_at",
|
||||
"created_by_id",
|
||||
"db_id"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"created_at": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"created_by_id": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"db_id": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"last_sync_at": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"next_sync_at": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"url": {
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"url",
|
||||
"created_at",
|
||||
"last_sync_at",
|
||||
"next_sync_at",
|
||||
"created_by_id",
|
||||
"db_id"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"created_at": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"created_by_id": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"db_id": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"error_message": {
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"url",
|
||||
"created_at",
|
||||
"error_message",
|
||||
"created_by_id",
|
||||
"db_id"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.arithmetic.plus-minus-temporal-interval-schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.arithmetic.plus-minus-numeric-schema.json"
|
||||
},
|
||||
{
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.arithmetic.plus-minus-numeric-schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.arithmetic.temporal-difference-schema.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": ">"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": ">="
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "<"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "<="
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.arithmetic.plus-minus-temporal-interval-schema.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.arithmetic.plus-minus-numeric-schema.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "abs"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "aggregation"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.ref.aggregation-options.json"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "asc"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "avg"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "between"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "ceil"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "collate"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "count-where"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.boolean.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "cum-sum"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "date"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "datetime-add"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.temporal-bucketing..unit.date-time.interval.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "datetime-diff"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.datetime-diff-unit.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "datetime-subtract"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.temporal-bucketing..unit.date-time.interval.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "day-name"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.integer.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "desc"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "distinct-where"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.aggregation..distinct.arg.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.boolean.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "distinct"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.aggregation..distinct.arg.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "domain"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "during"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
},
|
||||
{
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.literal..string.date.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.literal..string.datetime.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.temporal-bucketing..unit.date-time.interval.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "exp"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "expression"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.ref..expression.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.non-blank-string.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "field"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.ref..field.options.json"
|
||||
},
|
||||
{
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.id.field.json"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.ref..field.id.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.ref..field.literal.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "float"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "floor"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "get-day"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "get-hour"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "get-minute"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "get-month"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "get-quarter"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "get-second"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "get-year"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "host"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "inside"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "integer"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "interval"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.temporal-bucketing..unit.date-time.interval.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "is-empty"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.expression.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "is-null"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.expression.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "length"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "log"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "lower"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "ltrim"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "max"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "measure"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.id.measure.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "median"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "metric"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.id.card.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "min"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.orderable.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "month-name"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.integer.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "not-empty"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.expression.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "not-null"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.expression.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "not"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.boolean.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "now"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "offset"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.expression.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.window..offset.n.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "path"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "percentile"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.aggregation..percentile.percentile.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "power"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "quarter-name"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.integer.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "regex-match-first"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "relative-time-interval"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.temporal.json"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.temporal-bucketing..unit.date-time.interval.json"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.temporal-bucketing..unit.date-time.interval.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "replace"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "round"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "rtrim"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "segment"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.non-blank-string.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.id.segment.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "share"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.boolean.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "split-part"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.string.json"
|
||||
},
|
||||
{
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.positive-integer-or-numeric-expression.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"prefixItems": [
|
||||
{
|
||||
"const": "sqrt"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.common.options.json"
|
||||
},
|
||||
{
|
||||
"$ref": "./metabase.lib.schema.expression.number.json"
|
||||
}
|
||||
],
|
||||
"type": "array"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user