From be23acf499bcdb530c1b8990aa3d6211323cbdb2 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 20 May 2021 19:33:08 -0400 Subject: Structured content image size units (#1692) * Add support for sizeUnits on image content * Update test data --- ext/data/schemas/dictionary-term-bank-v3-schema.json | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ext/data') diff --git a/ext/data/schemas/dictionary-term-bank-v3-schema.json b/ext/data/schemas/dictionary-term-bank-v3-schema.json index 0ab01edb..b1141154 100644 --- a/ext/data/schemas/dictionary-term-bank-v3-schema.json +++ b/ext/data/schemas/dictionary-term-bank-v3-schema.json @@ -52,14 +52,14 @@ "description": "Path to the image file in the archive." }, "width": { - "type": "integer", + "type": "number", "description": "Preferred width of the image.", - "minimum": 1 + "minimum": 0 }, "height": { - "type": "integer", + "type": "number", "description": "Preferred width of the image.", - "minimum": 1 + "minimum": 0 }, "title": { "type": "string", @@ -84,6 +84,11 @@ "type": "string", "description": "The vertical alignment of the image.", "enum": ["baseline", "sub", "super", "text-top", "text-bottom", "middle", "top", "bottom"] + }, + "sizeUnits": { + "type": "string", + "description": "The units for the width and height.", + "enum": ["px", "em"] } } } -- cgit v1.2.3