Files
grafana/pkg/schema/testdata/trimapplydefaults/basicStruct.txtar
ying-jeanne 227c8403b5 Fix the disjuction of panels (#39412)
[As code] Correct trim apply defaults when import/export dashboards
2021-10-06 11:39:23 +02:00

35 lines
561 B
Plaintext

Verifies common usecases for trimdefault/applydefault functions:
* Basic cases
* Real dashboard
-- CUE --
{
id?: number
uid: string
gnetId?: string
style: *"light" | "dark"
timezone?: *"browser" | "utc"
editable: bool | *true
schemaVersion: number | *25
version?: number
graphTooltip: >=0 & <=2 | *0
}
-- Full --
{
"editable": true,
"graphTooltip": 0,
"id": 42,
"schemaVersion": 27,
"style": "light",
"uid": "emal8gQMz",
"version": 2
}
-- Trimmed --
{
"id": 42,
"schemaVersion": 27,
"uid": "emal8gQMz",
"version": 2
}