From 2c02b5e95171c08a548841cf331647612aebebee Mon Sep 17 00:00:00 2001 From: "Meena.Hoda" Date: Thu, 28 Mar 2019 09:06:55 +0000 Subject: [PATCH] feat: begin to add List to schema --- lib/schema.json | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/lib/schema.json b/lib/schema.json index ad72988..2f73e9d 100644 --- a/lib/schema.json +++ b/lib/schema.json @@ -423,6 +423,9 @@ { "$ref": "#/definitions/Table" }, + { + "$ref": "#/definitions/List" + }, { "$ref": "#/definitions/Media" }, @@ -1843,6 +1846,42 @@ "title" ] }, + "List": { + "additionalProperties": true, + "type": "object", + "description": "Displays text, allowing control over font sizes, weight, and color.", + "allOf": [ + { + "$ref": "#/definitions/CardElement" + } + ], + "properties": { + "id": { + "type": "string", + "description": "A unique identifier associated with the element." + }, + "type": { + "type": "string", + "description": "Must be `\"List\"`.", + "enum": [ + "List" + ] + }, + "title": { + "type": "string", + "description": "Title displayed for the `List`." + }, + "arrayPath": { + "type": "string", + "description": "Points to the array of data to be displayed." + } + }, + "required": [ + "id", + "type", + "arrayPath" + ] + }, "Table": { "additionalProperties": true, "type": "object",