diff --git a/src/schema-validation.jsonc b/src/schema-validation.jsonc index cb1b30437e6..3af71db4024 100644 --- a/src/schema-validation.jsonc +++ b/src/schema-validation.jsonc @@ -1211,9 +1211,6 @@ "externalSchema": ["gematik-test-patients.json"], "unknownKeywords": ["existingJavaType"] }, - "grafana-dashboard-5.x.json": { - "externalSchema": ["base-04.json"] - }, "grunt-clean-task.json": { "externalSchema": ["grunt-task.json"] }, diff --git a/src/schemas/json/grafana-dashboard-5.x.json b/src/schemas/json/grafana-dashboard-5.x.json index d08fe437166..8d01825ec5d 100644 --- a/src/schemas/json/grafana-dashboard-5.x.json +++ b/src/schemas/json/grafana-dashboard-5.x.json @@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/grafana-dashboard-5.x.json", "description": "JSON Schema for Grafana 5.x Dashboards (https://grafana.com/docs/grafana/latest/reference/dashboard/#dashboard-json)", - "id": "https://json.schemastore.org/grafana-dashboard-5.x.json", "properties": { "meta": { "type": "object", @@ -16,7 +16,14 @@ "properties": { "id": { "description": "unique numeric identifier for the dashboard. (generated by the db)", - "type": ["number", "null"] + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] }, "uid": { "description": "unique dashboard identifier that can be generated by anyone. string (8-40)", @@ -177,7 +184,14 @@ }, "datasource": { "description": "shows data source for the variables", - "type": ["string", "null"] + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "includeAll": { "description": "whether all value option is available or not",