diff --git a/schemas/api-config/dashboard.json b/schemas/api-config/dashboard.json index d32d5c9..1dca799 100644 --- a/schemas/api-config/dashboard.json +++ b/schemas/api-config/dashboard.json @@ -13,8 +13,7 @@ { "$ref": "#/definitions/swiper" }, { "$ref": "#/definitions/graph" }, { "$ref": "#/definitions/table" }, - { "$ref": "#/definitions/reference" }, - { "$ref": "#/definitions/comparison" } + { "$ref": "#/definitions/reference" } ] } }, @@ -72,9 +71,28 @@ "graph": { "type": "object", "properties": { + "additionalApiParams": { + "$ref": "#/definitions/additionalApiParams" + }, "class": { "type": "string" }, - "type": { "type": "string", "enum": ["graph"] }, + "type": { "type": "string", "enum": ["graph", "comparison"] }, "containerProps": { "$ref": "#/definitions/containerProps" }, + "css": { + "type": "object", + "properties": { + "graph": { + "type": "object", + "properties": { + "wrapper": { + "$ref": "#/definitions/cssWithEval" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "title": { "oneOf": [ { @@ -222,19 +240,7 @@ "items": { "type": "string" } }, "additionalApiParams": { - "type": "object", - "properties": { - "offset": { "type": "number" }, - "limit": { "type": "number" }, - "sort": { "type": "string" }, - "filter": { - "type": "object", - "additionalProperties": true - }, - "projection": { "type": "string" }, - "count": { "type": "number", "enum": [1] } - }, - "additionalProperties": false + "$ref": "#/definitions/additionalApiParams" } }, "required": ["type", "columns"], @@ -293,6 +299,19 @@ }, "additionalProperties": false }, + "additionalApiParams": { + "type": "object", + "properties": { + "offset": { "type": "number" }, + "limit": { "type": "number" }, + "sort": { "type": "string" }, + "filter": { "type": "object", "additionalProperties": true }, + "projection": { "type": "string" }, + "count": { "type": "number", "enum": [1] } + }, + "additionalProperties": false + }, + "cssWithEval": { "oneOf": [ {