mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 11:42:35 -06:00
a7ea0ca849
* refactory to move trim/apply default into schema.go * fix comments * move schema test outside of load folder
41 lines
637 B
Plaintext
41 lines
637 B
Plaintext
Verifies common usecases for trimdefault/applydefault functions:
|
|
* Basic cases
|
|
* Real dashboard
|
|
|
|
-- CUE --
|
|
{
|
|
timepicker?: {
|
|
collapse: bool | *false
|
|
enable: bool | *true
|
|
hidden: bool | *false
|
|
refresh_intervals: [...string] | *["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"]
|
|
}
|
|
}
|
|
|
|
-- Full --
|
|
{
|
|
"timepicker": {
|
|
"collapse": true,
|
|
"enable":true,
|
|
"hidden":false,
|
|
"refresh_intervals":[
|
|
"5s",
|
|
"10s",
|
|
"30s",
|
|
"1m",
|
|
"5m",
|
|
"15m",
|
|
"30m",
|
|
"1h",
|
|
"2h",
|
|
"1d"
|
|
]
|
|
}
|
|
}
|
|
|
|
-- Trimed --
|
|
{
|
|
"timepicker": {
|
|
"collapse": true
|
|
}
|
|
} |