summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grafana_dashboards/schema/panel/graph.py1
-rw-r--r--tests/schema/fixtures/dashboard-0012.json1
-rw-r--r--tests/schema/fixtures/dashboard-0012.yaml1
3 files changed, 3 insertions, 0 deletions
diff --git a/grafana_dashboards/schema/panel/graph.py b/grafana_dashboards/schema/panel/graph.py
index 66c54a5..a28be9e 100644
--- a/grafana_dashboards/schema/panel/graph.py
+++ b/grafana_dashboards/schema/panel/graph.py
@@ -66,6 +66,7 @@ class Graph(Base):
66 v.Required('query_as_alias', default=True): v.All(bool), 66 v.Required('query_as_alias', default=True): v.All(bool),
67 v.Required('shared', default=True): v.All(bool), 67 v.Required('shared', default=True): v.All(bool),
68 v.Required('value_type', default='cumulative'): v.All(value_types), 68 v.Required('value_type', default='cumulative'): v.All(value_types),
69 v.Optional('sort'): v.Range(min=0, max=2),
69 } 70 }
70 71
71 series_override = { 72 series_override = {
diff --git a/tests/schema/fixtures/dashboard-0012.json b/tests/schema/fixtures/dashboard-0012.json
index 22b7f5d..f2e5beb 100644
--- a/tests/schema/fixtures/dashboard-0012.json
+++ b/tests/schema/fixtures/dashboard-0012.json
@@ -25,6 +25,7 @@
25 "tooltip": { 25 "tooltip": {
26 "query_as_alias": true, 26 "query_as_alias": true,
27 "shared": true, 27 "shared": true,
28 "sort": 2,
28 "value_type": "individual" 29 "value_type": "individual"
29 }, 30 },
30 "type": "graph", 31 "type": "graph",
diff --git a/tests/schema/fixtures/dashboard-0012.yaml b/tests/schema/fixtures/dashboard-0012.yaml
index 18f24e6..3ebd6ab 100644
--- a/tests/schema/fixtures/dashboard-0012.yaml
+++ b/tests/schema/fixtures/dashboard-0012.yaml
@@ -8,3 +8,4 @@ dashboard:
8 type: graph 8 type: graph
9 tooltip: 9 tooltip:
10 value_type: individual 10 value_type: individual
11 sort: 2